Hadoop提供了Configurable
和Configuration
来让类访问SparkConf
对象。除了通过构造函数传递{{1}}之外,Spark中还有其他类似的方法吗?
答案 0 :(得分:0)
spark.master spark://5.6.7.8:7077
spark.executor.memory 4g
spark.eventLog.enabled true
spark.serializer org.apache.spark.serializer.KryoSerializer
./bin/spark-submit --name "My app" --master local[4] --conf spark.eventLog.enabled=false
--conf "spark.executor.extraJavaOptions=-XX:+PrintGCDetails -XX:+PrintGCTimeStamps" myApp.jar