Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java CDH4.3 QuickStart上accumulo 1.4.3 helloworld示例的问题_Java_Hadoop_Accumulo - Fatal编程技术网

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

Java CDH4.3 QuickStart上accumulo 1.4.3 helloworld示例的问题,java,hadoop,accumulo,Java,Hadoop,Accumulo,我正在尝试构建accumulo/cloudera快速入门。Accumulo正在运行,但我在尝试执行示例(即HelloWorld)时遇到问题 它似乎在寻找hadoop而不是accumulo类 以下是执行和错误消息。我感谢你的帮助 ./bin/accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithOutputFormat "instance" localhost:2181 "username" "password" hel

我正在尝试构建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
问题由以下人员解决: 1) 使用cdh4 accumulo-1.4.3焦油 2) 添加其他用户
3) 确保对支持JAR的写入权限

重复?解决了,问题是shell中的权限和accumulo文件的权限