eclipse 远程调试hadoop Wordcount程序报错

heart-key 发布于 2016/08/09 09:53
阅读 519
收藏 0
我的hadoop是部署在阿里云服务器上的,我在本地用eclipse调试Wordcount程序,已经能够连接hadoop,但是运行的时候报错:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.tracing.SpanReceiverHost.get(Lorg/apache/hadoop/conf/Configuration;Ljava/lang/String;)Lorg/apache/hadoop/tracing/SpanReceiverHost;

at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:634)

at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)

at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)

at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)

at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)

at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)

at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)

at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)

at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)

at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPath(FileInputFormat.java:520)

at com.chen.main.WordCount.main(WordCount.java:67)


报错的代码是:

    FileInputFormat.addInputPath(job, new Path("hdfs://112.74.78.239:50040/user/root/input/words"));


这个路径是我在云服务器上面的input路径,权限没有问题,但是一直报这句话的错,有人遇到过这个问题吗?

加载中
返回顶部
顶部