Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName

后端 未结 4 1053
你的背包
你的背包 2021-01-04 07:42

I know there have been many posts regarding this exception, but I am not able to fix this issue. Classpath has to be edited I think to resolve it. I am trying to run a prog

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 07:56

    If you are a maven user and faced this issue -

        
            org.apache.hadoop
            hadoop-client
            ${hadoop.client.version}
        
        
            org.apache.hadoop
            hadoop-common
            ${hadoop.client.version}
        
    

    NOTE: :hadoop-client:2.5.2 alone didn't bring in all the required hadoop dependencies. That is why I added hadoop-common, which brought all the required deps.

提交回复
热议问题