diff options
Diffstat (limited to 'examples/src')
-rw-r--r-- | examples/src/main/java/org/apache/spark/examples/JavaSparkPi.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/main/java/org/apache/spark/examples/JavaSparkPi.java b/examples/src/main/java/org/apache/spark/examples/JavaSparkPi.java index 3ec4a58d48..ac8df02c46 100644 --- a/examples/src/main/java/org/apache/spark/examples/JavaSparkPi.java +++ b/examples/src/main/java/org/apache/spark/examples/JavaSparkPi.java @@ -30,11 +30,11 @@ public final class JavaSparkPi { public static void main(String[] args) throws Exception { if (args.length == 0) { - System.err.println("Usage: JavaLogQuery <master> [slices]"); + System.err.println("Usage: JavaSparkPi <master> [slices]"); System.exit(1); } - JavaSparkContext jsc = new JavaSparkContext(args[0], "JavaLogQuery", + JavaSparkContext jsc = new JavaSparkContext(args[0], "JavaSparkPi", System.getenv("SPARK_HOME"), JavaSparkContext.jarOfClass(JavaSparkPi.class)); int slices = (args.length == 2) ? Integer.parseInt(args[1]) : 2; |