立即注册 登录
About云-梭伦科技 返回首页

hery的个人空间 https://aboutyun.com/?9169 [收藏] [复制] [分享] [RSS]

日志

错误java.lang.NoSuchMethodError: org.apache.hadoop.mapreduce.Reducer$Context.如 ...

热度 1已有 2047 次阅读2014-9-2 17:44 |个人分类:错误

java.lang.NoSuchMethodError: org.apache.hadoop.mapreduce.Reducer$Context.<init>(Lorg/apache/hadoop/mapreduce/Reducer;Lorg/apache/hadoop/conf/Configuration;Lorg/apache/hadoop/mapreduce/TaskAttemptID;Lorg/apache/hadoop/mapred/RawKeyValueIterator;Lorg/apache/hadoop/mapreduce/Counter;Lorg/apache/hadoop/mapreduce/RecordWriter;Lorg/apache/hadoop/mapreduce/OutputCommitter;Lorg/apache/hadoop/mapreduce/StatusReporter;Lorg/apache/hadoop/io/RawComparator;Ljava/lang/Class;Ljava/lang/Class;)V
    at org.apache.hadoop.mrunit.mapreduce.mock.MockReduceContextWrapper$MockReduceContext.<init>(MockReduceContextWrapper.java:68)
    at org.apache.hadoop.mrunit.mapreduce.mock.MockReduceContextWrapper.getMockContext(MockReduceContextWrapper.java:183)

    at org.apache.hadoop.mrunit.mapreduce.ReduceDriver.run(ReduceDriver.java:201)

    at org.apache.hadoop.mrunit.ReduceDriverBase.runTest(ReduceDriverBase.java:186)

    at cn.hyh.test.ReducerTest.test(ReducerTest.java:42)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)

    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)

    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)

    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)

    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)

    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)

    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)

    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)

    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)

    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)

    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)

    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)

    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)

    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)




路过

雷人

握手

鲜花

鸡蛋

全部作者的其他最新日志

发表评论 评论 (2 个评论)

回复 pig2 2014-9-5 11:08
找不到方法
回复 hery 2014-9-5 11:48
恩,最后解决了,因为hadoop的版本和进行mr测试的版本不一致

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

关闭

推荐上一条 /2 下一条