美文网首页
关于MapReduce

关于MapReduce

作者: 蓝Renly | 来源:发表于2019-04-21 20:22 被阅读0次

坑:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/StopWatch
    at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:314)

啊,还是最爱StackOverFlow啊!!!
一直报上面错误,找了半天原因,在sof上看到是版本原因,果然,更换pom.xml版本后,解决了问题!
I solved the problem , actually there was version incompetency so i change hadoop-client 2.6.0 to 2.7.0

<dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-common</artifactId>
    <version>2.7.2</version>
</dependency>

相关文章

网友评论

      本文标题:关于MapReduce

      本文链接:https://www.haomeiwen.com/subject/fftsgqtx.html