hadoop-common-2.8.2搭建环境,报错 org.apache.htrace.core.Tracer$Builder.<init>(Ljava/lang/String;)V

报错:Exception in thread "main" java.lang.NoSuchMethodError: org.apache.htrace.core.Tracer$Builder.(Ljava/lang/String;)V

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.htrace.core.Tracer$Builder.(Ljava/lang/String;)V
at org.apache.hadoop.fs.FsTracer.get(FsTracer.java:42)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2806)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:100)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2849)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2831)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:389)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:181)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:356)
at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPath(FileInputFormat.java:526)
at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPaths(FileInputFormat.java:491)
at com.knn.c.SortMR.main(SortMR.java:65)
换了三个版本的架包htrace-core-3.0.4,htrace-core-3.1.0-incubating,htrace-core-4.0.0-incubating,htrace-core-2.00都试过了,但是还是依旧报错,被这个问题烦死了,在这里卡住了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐