02-07-2014 06:16 AM - last edited on 02-07-2014 08:28 AM by jkestelyn
I followed the instructions at http://www.cloudera.com/content/cloudera-content/cloudera-docs/Accumulo/latest/PDF/Apache-Accumulo-I... I used the accumulo-1.4.3-cdh4.3.0-dist.tar.gz
When I ran the hellow world example to determine if the installation was correct I got the following errors.
./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.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)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
These problems were identified by an accumulo group as as hadoop 2.0 – accumulo 1.4.3 compatibility issues.
I really want to use the cloudera CDH4 quick start. Here is a link to my error posting on stack:http://stackoverflow.com/questions/21563143/issues-with-accumulo-1-4-3-helloworld-example-on-cdh4-3- things happen …
I would appreciate your advice!
02-07-2014 01:03 PM
It looks like you have some Accumulo jars in your path that don't work with Hadoop 2 (and thus CDH4).
First, to make sure we're on the same page, earlier I walked through the following:
I was able to do all of the above succesfully (after adjusting the installation classpath for using a CDH installation done with packages).
Does this matches what you are trying to do?
Presuming it does, let's step through what could be wrong with your install. Can you open a terminal on your quickstart VM and run the following:
Please get the output of both of these commands and paste it into a gist/pastebin somewhere. For comparison, here is the output of those commands on my QuickStart VM.
02-14-2014 04:53 AM
02-14-2014 06:23 AM
Let's try to keep these threads on a single problem. It sounds like the compatibility issue that started this thread has been addressed. Could you mark it resolved?
Your current problem sounds like it's the same one we started working on when ChunkInputFormatTest failed. Could you follow up on that question with a link to the output of running the maven commandline for building? If you use the rich text editor, there's a button for pasting in code that will help make the output more readable.
In regards to the newer release, I've had no issues using it on the Quickstart VM. However, until we figure out the root cause of your problem there's little reason to change the Accumulo version.
02-14-2014 06:39 AM
I tried mvn -Dhadoop.profile=2.0 package on command line, eclips and netbeans builds and still get the following errors, seems it can't find org.apache.hadoop:hadoop-core:jar:2.0.0-cdh4.3.0 :When building"examples-simple I got the following output:========================Some dependency artifacts are not in your local repository:your project has dependencies that are not resolved locally. Code completion in the IDE will not include classes from these dependencies or their transitive dependencies (unless they are among the open projects).Please download the dependencies, or install them manually, if not available remotely.The artifacts are:org.apache.hadoop:hadoop-core:jar:2.0.0-cdh4.3.0===================================================Build however indicated success.
This particular issue sounds like an IDE problem. Specifically, it looks like the IDE isn't reading repository settings out of the pom, so it doesn't know how to find the CDH jars. You should be able to edit the pom, get the relevant repository settings, and add them to the maven settings for hte IDE to fix part of the problem.
03-01-2014 09:00 AM
Ignore the build instructions for tarball at http://www.cloudera.com/content/cloudera-content/cloudera-docs/Accumulo/latest/PDF/Apache-Accumulo-I...
Use the other instructions of go to git hub if you ar building a development environment.
03-13-2014 12:41 AM
Turns out, the instructions in the PDF are outdated and no longer work. I tried to follow the install via tarball step-by-step, but got the following error:
[accumulo@localhost accumulo]$ ./bin/accumulo init
Uncaught exception: org/apache/zookeeper/KeeperException
at java.lang.Class.forName0(Native Method)
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException
at java.security.AccessController.doPrivileged(Native Method)
... 5 more
does anyone have an updated documentation that has accumulo working on cdh4.4 VM?
03-14-2014 10:16 PM
It's probably worth you posting a top-level question about getting things to work with the latest Quickstart VM.
FWIW, I have tested the latest install instructions along with our current release (Accumulo 1.4.4-cdh4.5.0) on the 4.4 Quickstart VM and everything worked fine.
Can you post your accumulo-site.xml somewhere that I can review it?