Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problems while configuring accumulo

Tags:

accumulo

In my system Hadoop and zookeeper working properly. Now I have just configured Accumulo.But when i am going to initialize Accumulo by

accumulo init

it is showing following errors.


[root@hydDev32 bin]# ./accumulo init

Uncaught exception: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found
javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found
        at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
        at org.apache.accumulo.start.classloader.AccumuloClassLoader.getAccumuloString(AccumuloClassLoader.java:307)
        at org.apache.accumulo.start.classloader.AccumuloClassLoader.getAccumuloClasspathStrings(AccumuloClassLoader.java:291)
        at org.apache.accumulo.start.classloader.AccumuloClassLoader.findAccumuloURLs(AccumuloClassLoader.java:217)
        at org.apache.accumulo.start.classloader.AccumuloClassLoader.getAccumuloClassLoader(AccumuloClassLoader.java:375)
        at org.apache.accumulo.start.classloader.AccumuloClassLoader.getClassLoader(AccumuloClassLoader.java:393)
        at org.apache.accumulo.start.Main.main(Main.java:39)




[root@hydDev32 bin]#

can anybody help me to solve this problem... ??

like image 706
Rajesh Barri Avatar asked Jul 06 '12 10:07

Rajesh Barri


2 Answers

I just ran into this exact same problem, and it turned out that I had a bad JAVA_HOME set in my environment. Once I cleared that, the JAVA_HOME setting in accumulo-env.sh took over and everything worked fine.

like image 124
Trebor Rude Avatar answered Nov 17 '22 17:11

Trebor Rude


I can't comment to ask for further information, so this may be a shot in the dark. But com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl is not being found. This should be included in rt.jar (classes.jar in OSX), which is part of the java runtime. So I would look into the version of java you are using.

Also, if I am mistaken, can you please clarify with the version of Accumulo, Hadoop, and Java.

like image 1
ohshazbot Avatar answered Nov 17 '22 16:11

ohshazbot