spark-shell报错:Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/Logger

解决办法

在spark-env.sh中加上export export SPARK_DIST_CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath)

 

posted on 2022-03-16 20:04  sakura_xxg  阅读(65)  评论(0编辑  收藏  举报