【发布时间】:2018-10-04 17:39:06
【问题描述】:
我是一名新手,正在尝试介绍本地 spark 工作。 这是我尝试执行的命令,但我收到一条警告,指出我的执行程序选项被忽略,因为它们是非 Spark 配置属性。
错误:
警告:忽略非火花配置属性:“spark.executor.extraJavaOptions=javaagent:statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar=server=localhost,port=8086,reporter=InfluxDBReporter ,database=profiler,username=profiler,password=profiler,prefix=MyNamespace.MySparkApplication,tagMapping=namespace.application”
命令:
./bin/spark-submit --master local[2] --class org.apache.spark.examples.GroupByTest --conf “spark.executor.extraJavaOptions=-javaagent:statsd-jvm-profiler-2.1. 0-jar-with-dependencies.jar=server=localhost,port=8086,reporter=InfluxDBReporter,database=profiler,username=profiler,password=profiler,prefix=MyNamespace.MySparkApplication,tagMapping=namespace.application” --name HdfsWordCount --jars /Users/shprin/statD/statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar libexec/examples/jars/spark-examples_2.11-2.3.0.jar
Spark 版本:2.0.3
请告诉我,如何解决这个问题。
提前致谢。
【问题讨论】:
-
能否请您删除
spark.executor.extraJavaOptions=...周围的引号并重新开始?我宁愿使用--conf spark.executor.extraJavaOptions="-javaagent:statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar=server=localhost,port=8086,reporter=InfluxDBReporter,database=profiler,username=profiler,password=profiler,prefix=MyNamespace.MySparkApplication,tagMapping=namespace.application",甚至不使用引号。 -
试过没用1
-
错误是什么?
标签: apache-spark hadoop