Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # user >> importdirectory in accumulo

Copy link to this message
Re: importdirectory in accumulo
On Thu, Apr 4, 2013 at 7:46 AM, Aji Janis <[EMAIL PROTECTED]> wrote:

> *Billie, I checked the values in tool.sh they match. I uncommented the
> echo statements and reran the cmd here is what I have:*
> *
> *
> *$ ./bin/tool.sh ./lib/examples-simple-1.4.2.jar
> org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample
> instance zookeeper usr pswd table inputdir tmp/bulk*
> CLASSNAME=org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample
> HADOOP_CLASSPATH=/opt/accumulo/lib/libthrift-0.6.1.jar:/opt/accumulo/lib/accumulo-core-1.4.2.jar:/opt/zookeeper/zookeeper-3.3.3.jar:/opt/accumulo/lib/cloudtrace-1.4.2.jar:/opt/accumulo/lib/commons-collections-3.2.jar:/opt/accumulo/lib/commons-configuration-1.5.jar:/opt/accumulo/lib/commons-io-1.4.jar:/opt/accumulo/lib/commons-jci-core-1.0.jar:/opt/accumulo/lib/commons-jci-fam-1.0.jar:/opt/accumulo/lib/commons-lang-2.4.jar:/opt/accumulo/lib/commons-logging-1.0.4.jar:/opt/accumulo/lib/commons-logging-api-1.0.4.jar:
> exec /opt/hadoop/bin/hadoop jar ./lib/examples-simple-1.4.2.jar
> org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample
> -libjars
> "/opt/accumulo/lib/libthrift-0.6.1.jar,/opt/accumulo/lib/accumulo-core-1.4.2.jar,/opt/zookeeper/zookeeper-3.3.3.jar,/opt/accumulo/lib/cloudtrace-1.4.2.jar,/opt/accumulo/lib/commons-collections-3.2.jar,/opt/accumulo/lib/commons-configuration-1.5.jar,/opt/accumulo/lib/commons-io-1.4.jar,/opt/accumulo/lib/commons-jci-core-1.0.jar,/opt/accumulo/lib/commons-jci-fam-1.0.jar,/opt/accumulo/lib/commons-lang-2.4.jar,/opt/accumulo/lib/commons-logging-1.0.4.jar,/opt/accumulo/lib/commons-logging-api-1.0.4.jar"
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/accumulo/core/client/Instance
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:264)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.accumulo.core.client.Instance
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>         ... 3 more
The command looks right.  Instance should be packaged in the accumulo core
jar.  To verify that, you could run:
jar tf /opt/accumulo/lib/accumulo-core-1.4.2.jar | grep

I'm not sure what's going on here.  If that error is happening right away,
it seems like it can't load the jar on the local machine.  If you're
running multiple machines, and if the error were happening later during the
MapReduce, I would suggest that you make sure accumulo is present on all
the machines.

You asked about the user; is the owner of the jars different than the user
you're running as?  In that case, it could be a permissions issue.  Could
the permissions be set so that you can list that directory but not read the


> *org/apache/accumulo/core/client/Instance is located in the src/...
> folder which I am not is what is packaged in the examples-simple-[^c].jar
> ? *
> *Sorry folks for the constant emails... just trying to get this to work
> but I really appreciate the help.*
> On Thu, Apr 4, 2013 at 10:18 AM, John Vines <[EMAIL PROTECTED]> wrote:
>> If you run tool.sh with sh -x, it will step through the script so you can
>> see what jars it is picking up and perhaps why it's missing them for you.
>> Sent from my phone, please pardon the typos and brevity.
>> On Apr 4, 2013 10:15 AM, "Aji Janis" <[EMAIL PROTECTED]> wrote:
>>> What user are you running the commands as ?
>>> On Thu, Apr 4, 2013 at 9:59 AM, Aji Janis <[EMAIL PROTECTED]> wrote:
>>>> Where did you put all your java files?