启动spark- sqI时:Error: A JNI error has occurred, please check your installation and try again Exceptio

错误信息:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/Logger

解决:
命令行临时导入下面这个变量,或者配置到环境变量中,即可。

	#添加Hadoop的classpath到SPARK_DIST_CLASSPAHT中
export SPARK_DIST_CLASSPATH=$(hadoop classpath)

参考blog:

http://www.cnblogs.com/chenzechao/p/10204263.html

你可能感兴趣的:(spark)