zl程序教程

您现在的位置是:首页 >  工具

当前栏目

解决Exception in thread “main“ org.apache.spark.SparkException: When running with master ‘yarn‘ either

ApacheSpark 解决 in with org thread when
2023-09-14 09:01:57 时间

Exception in thread “main” org.apache.spark.SparkException: When running with master ‘yarn’ either HADOOP_CONF_DIR or YARN_CONF_DIR must be set in the environment.

spark-env.sh

export HADOOP_CONF_DIR=/opt/bigdata/hadoop-2.9.2/etc/hadoop/
export YARN_CONF_DIR=/opt/bigdata/hadoop-2.9.2/etc/hadoop/