Expert Contributor
Posts: 131
Registered: ‎08-08-2013
Accepted Solution

Problem configuring Accumulo in CM managed cluster

[ Edited ]


I just wanted to install Accumulo (1.5.0 from tar.gz) on a Hadoop cluster (latest CDH4.5 parcel) managed by CM (4.8).

How do I have to set the HADOOP_HOME, ZOOKEEPER_HOME and HADOOP_CONF_DIR properties accordingly, to be able to start Accumulo in this CM-managed environment.


My current config looks like:





...but after executing "./bin/accumulo init" I get the following error:


root@hadoop-pg-2:~/accumulo/accumulo-1.5.0# bin/accumulo init
Uncaught exception: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.accumulo.start.Main.main(
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.<init>(
at org.apache.accumulo.start.classloader.vfs.FinalCloseDefaultFileSystemManager.<init>(
at org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.generateVfs(
at org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.getClassLoader(
... 5 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at Method)
at java.lang.ClassLoader.loadClass(
at org.apache.accumulo.start.classloader.AccumuloClassLoader$2.loadClass(
at java.lang.ClassLoader.loadClass(



What's going wrong here?

I'm trying the install instructions from



Cloudera Employee
Posts: 88
Registered: ‎01-08-2014

Re: Problem configuring Accumulo in CM managed cluster



The problem you're running into is because the default Hadoop 2 paths (like those given in the comments of hte Apache Accumulo 1.5.0 release) aren't compatible with the layout used for libraries in CDH4.


If you take a look at this gist of an example set of configuration files for getting Accumulo 1.5.0 working on the Cloudera Qui... it should give you  a good basis for setting up an appropriate general.classpaths in your accumulo-site.xml.


One way to debug this as you go is to use the `accumulo classpath` command to see what libaries Accumulo thinks are configured. When everything is working correctly, you should see a bunch of entries with CDH version numbers.


Finally, keep in mind that the easiest way to get Accumulo up and running on CDH4 is to use our officially supported release. If you're willing to try out the latest beta version of CM there's even a parcel based installation option. Our release is based on upstream Apache Accumulo 1.4.3 (but with  Hadoop 2 support). If there's some other feature of 1.5.0 that's compelling you to go to that version, I'd love to chat about it.



Expert Contributor
Posts: 131
Registered: ‎08-08-2013

Re: Problem configuring Accumulo in CM managed cluster

Hi Sean,

many thanks for your reply. I tried adding the Accumulo1.4.3 parcel repo to CM, but after adding the remote parcel url ( and clicking on the parcel icon I just get:

ACCUMULO 1.4.3-cdh4.3.0

This is most probably due to the CDH version, I'm running CDH 4.5.0 ?!?! Is there a parcel repo available which is working in CDH4.5.0 (CM version 4.8) ?
Nevertheless, after adding

to accumulo-site.xml I was able to proceed with executing "su hdfs ./bin/accumulo init". 
After starting accumulo (./bin/ as root it is even possible to login to the accumulo shell via "./bin/accumulo shell -u root".
Regrettably the web interface isn't working => "http://accumulomaster:50095/status" gives me "webpage not available" and a "telnet accumulomaster 50095" produces: "telnet: Unable to connect to remote host: Connection refused"
Any hints where I can further check what happened to the web ui ?
In the output of "accumulo classpath" command there are many lines including "/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/lib/" on level 3, thereby I assume the config should be fine...
best regards..: Gerd :..
Expert Contributor
Posts: 131
Registered: ‎08-08-2013

Re: Problem configuring Accumulo in CM managed cluster

FYI: after resolving some port conflicts :smileyfrustrated: all problems are gone and Accumulo is up and running 

Cloudera Employee
Posts: 88
Registered: ‎01-08-2014

Re: Problem configuring Accumulo in CM managed cluster

Glad to hear everything is workign now!


The problem with the Accumulo parcels is your Cloudera Manager version. The Accumulo integration uses a new extensibility feature only available in Cloudera Manager 5's current beta release.


Our community is getting a little larger. And a lot better.

Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.