关于CDH4.3 QuickStart上的accumulo 1.4.3 helloworld示例的问题

时间:2014-02-04 20:52:40

标签: java hadoop accumulo

我正在尝试将accumulo / cloudera快速启动放在一起。 Accumulo正在运行,但我在尝试执行示例时遇到问题,即hellowworld。

看来它正在发现hadoop而不是累积课程?

以下是执行和错误消息。感谢您的协助!

./bin/accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithOutputFormat "instance" localhost:2181 "username" "password" hellotable

Thread "org.apache.accumulo.examples.simple.helloworld.InsertWithOutputFormat" died nulljava.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.accumulo.start.Main$1.run(Main.java:89)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
    at org.apache.accumulo.core.util.ContextFactory.createTaskAttemptContext(ContextFactory.java:131)
    at org.apache.accumulo.examples.simple.helloworld.InsertWithOutputFormat.run(InsertWithOutputFormat.java:56)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at org.apache.accumulo.examples.simple.helloworld.InsertWithOutputFormat.main(InsertWithOutputFormat.java:76)
    ... 6 more

1 个答案:

答案 0 :(得分:0)

问题解决了: 1)使用cdh4 accumulo-1.4.3 tar 2)添加其他用户 3)确保支持jar的写权限