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

后端 未结 6 1563
萌比男神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:09

    If you are using spark with hdp, then you have to do the following things:

    Add these entries in $SPARK_HOME/conf/spark-defaults.conf

    spark.driver.extraJavaOptions -Dhdp.version=2.2.0.0-2041 (your installed HDP version)
    
    spark.yarn.am.extraJavaOptions -Dhdp.version=2.2.0.0-2041 (your installed HDP version)
    

    Create a file called java-opts in $SPARK_HOME/conf and add the installed HDP version to that file like this:

    -Dhdp.version=2.2.0.0-2041 (your installed HDP version)
    

    To figure out which hdp version is installed, please run this command in the cluster:

    hdp-select status hadoop-client
    

提交回复
热议问题