mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Update SPARK_HOME directory detection pattern for 2.0.0-preview in the test
This commit is contained in:
parent
3413707471
commit
839912a6ab
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ public abstract class AbstractTestRestApi {
|
|||
}
|
||||
|
||||
private static boolean isActiveSparkHome(File dir) {
|
||||
if (dir.getName().matches("spark-[0-9\\.]+-bin-hadoop[0-9\\.]+")) {
|
||||
if (dir.getName().matches("spark-[0-9\\.]+[A-Za-z-]*-bin-hadoop[0-9\\.]+")) {
|
||||
File pidDir = new File(dir, "run");
|
||||
if (pidDir.isDirectory() && pidDir.listFiles().length > 0) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue