Update SPARK_HOME directory detection pattern for 2.0.0-preview in the test

This commit is contained in:
Lee moon soo 2016-07-16 10:40:54 +09:00
parent 3413707471
commit 839912a6ab

View file

@ -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;