1

我正在尝试编写一个 accumulo/cloudera 快速入门。Accumulo 正在运行,但我在尝试执行样本时遇到问题,即 helloworld。

看来它是在寻找 hadoop 而不是 accumulo 类?

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

./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
4

1 回答 1

0

通过以下方式解决的问题:1)使用 cdh4 accumulo-1.4.3 tar 2)添加其他用户 3)确保支持 jar 的写入权限

于 2014-02-08T16:30:25.647 回答