Tag Archives: Spark-SQL Error

Spark-SQL 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

Solution:
the command line can temporarily import the following variable, or configure it to the environment variable.

	#Add the Hadoop classpath to SPARK_DIST_CLASSPAHT
export SPARK_DIST_CLASSPATH=$(hadoop classpath)