Skip to content

Commit 839912a

Browse files
committed
Update SPARK_HOME directory detection pattern for 2.0.0-preview in the test
1 parent 3413707 commit 839912a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private static String getSparkHomeRecursively(File dir) {
223223
}
224224

225225
private static boolean isActiveSparkHome(File dir) {
226-
if (dir.getName().matches("spark-[0-9\\.]+-bin-hadoop[0-9\\.]+")) {
226+
if (dir.getName().matches("spark-[0-9\\.]+[A-Za-z-]*-bin-hadoop[0-9\\.]+")) {
227227
File pidDir = new File(dir, "run");
228228
if (pidDir.isDirectory() && pidDir.listFiles().length > 0) {
229229
return true;

0 commit comments

Comments
 (0)