Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream

报错信息:
Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
at org.apache.spark.SparkConf.loadFromSystemProperties(SparkConf.scala:73)

具体报错信息:
image

查看一下pom.xml文件中,是不是存在provided,去掉provided试一下

                                                 
        org.apache.hadoop                    org.apache.hadoop
        hadoop-common    ===》         hadoop-common
        2.5.0-cdh5.2.0                       2.5.0-cdh5.2.0
        provided                              
    

你可能感兴趣的:(spark)