NoClassDefFoundError com.apache.hadoop.fs.FSDataInputStream when execute spark-shell

前端 未结 14 1122
北荒
北荒 2020-11-30 02:07

I\'ve downloaded the prebuild version of spark 1.4.0 without hadoop (with user-provided Haddop). When I ran the spark-shell command, I got this error:

> E         


        
相关标签:
14条回答
  • 2020-11-30 02:38

    Enter into SPARK_HOME -> conf

    copy spark-env.sh.template file and rename it to spark-env.sh Inside this file you can set the parameters for spark.

    0 讨论(0)
  • 2020-11-30 02:40

    I too had the issue,

    export SPARK_DIST_CLASSPATH=`hadoop classpath`
    

    resolved the issue.

    0 讨论(0)
提交回复
热议问题