“Bad substitution” when submitting spark job to yarn-cluster

后端 未结 6 1576
萌比男神i
萌比男神i 2020-12-31 07:32

I am doing a smoke test against a yarn cluster using yarn-cluster as the master with the SparkPi example program. Here is the command line:

<
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 08:15

    It is caused by hdp.version not getting substituted correctly. You have to set hdp.version in the file java-opts under $SPARK_HOME/conf.

    And you have to set

    spark.driver.extraJavaOptions -Dhdp.version=XXX 
    spark.yarn.am.extraJavaOptions -Dhdp.version=XXX
    

    in spark-defaults.conf under $SPARK_HOME/conf where XXX is the version of hdp.

提交回复
热议问题