1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
18/08/01 20:54:57 INFO SparkContext: Running Spark version 2.3.0
18/08/01 20:55:05 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
18/08/01 20:55:07 ERROR SparkContext: Error initializing SparkContext.
org.apache.spark.SparkException: A master URL must be set in your configuration
at org.apache.spark.SparkContext.<init>(SparkContext.scala:367)
at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:58)
at JavaRecommendationExample.main(JavaRecommendationExample.java:26)
18/08/01 20:55:08 ERROR Utils: Uncaught exception in thread main
java.lang.NullPointerException
at org.apache.spark.SparkContext.org$apache$spark$SparkContext$$postApplicationEnd(SparkContext.scala:2382)
at org.apache.spark.SparkContext$$anonfun$stop$1.apply$mcV$sp(SparkContext.scala:1897)
at org.apache.spark.util.Utils$.tryLogNonFatalError(Utils.scala:1357)
at org.apache.spark.SparkContext.stop(SparkContext.scala:1896)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:578)
at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:58)
at JavaRecommendationExample.main(JavaRecommendationExample.java:26)
18/08/01 20:55:08 INFO SparkContext: Successfully stopped SparkContext
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration
at org.apache.spark.SparkContext.<init>(SparkContext.scala:367)
at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:58)
at JavaRecommendationExample.main(JavaRecommendationExample.java:26)
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 27.683 s
Finished at: 2018-08-01T20:55:08+01:00
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project mavenproject1: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
'cmd' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes. |
Partager