diff options
author | Kevin Mader <kevinmader@gmail.com> | 2014-01-22 15:58:23 +0100 |
---|---|---|
committer | Kevin Mader <kevinmader@gmail.com> | 2014-01-22 15:58:23 +0100 |
commit | 36f9a64ec9b09309df82865a0caa482b7a3ffce0 (patch) | |
tree | 8b8b65a2e4e3fd6123ab6c3c2e28b73b2df19f4b /examples/src/main/java/org | |
parent | f8544981a6d05687fa950639cb1eb3c31e9b6bf5 (diff) | |
download | spark-36f9a64ec9b09309df82865a0caa482b7a3ffce0.tar.gz spark-36f9a64ec9b09309df82865a0caa482b7a3ffce0.tar.bz2 spark-36f9a64ec9b09309df82865a0caa482b7a3ffce0.zip |
fixed job name and usage information for the JavaSparkPi example
Diffstat (limited to 'examples/src/main/java/org')
-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; |