我在哪里可以设置spark.eventLog.enabled?

时间:2016-08-13 09:03:43

标签: java eclipse maven apache-spark

我想测试机器学习库Mllib form spark并在eclipse中设置一个依赖于依赖的maven项目。当我尝试编译this示例时,我得到以下异常:`ERROR SparkContext:初始化SparkContext时出错。

    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:371)
    at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2256)
    at org.apache.spark.sql.SparkSession$Builder$$anonfun$8.apply(SparkSession.scala:831)
    at org.apache.spark.sql.SparkSession$Builder$$anonfun$8.apply(SparkSession.scala:823)
    at scala.Option.getOrElse(Option.scala:121)
    at org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:823)
    at testing.JavaLogisticRegressionSummaryExample.main(JavaLogisticRegressionSummaryExample.java:33)

有人建议设置spark.eventLog.enabled太假,但我在哪里设置此值?

0 个答案:

没有答案