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)