Skip to content

Commit

Permalink
#7270: add default for spark master url
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete committed May 14, 2018
1 parent 018fed9 commit ea30051
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class SparkUIManager {
public static final String SPARK_EXECUTOR_CORES = "spark.executor.cores";
public static final String SPARK_SESSION_NAME = "spark";
public static final String CONNECT = "Connect";
private static final String SPARK_MASTER_DEFAULT = "local[*]";

private final SparkUI sparkUI;
private Map<Integer, SparkStateProgress> progressBars = new HashMap<>();
Expand Down Expand Up @@ -95,6 +96,8 @@ private Text createMasterURL() {
masterURL.setDescription("Master URL");
if (sparkManager.getSparkConf().contains(SPARK_MASTER)) {
masterURL.setValue(sparkManager.getSparkConf().get(SPARK_MASTER));
} else {
masterURL.setValue(SPARK_MASTER_DEFAULT);
}
return masterURL;
}
Expand Down

0 comments on commit ea30051

Please sign in to comment.