Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


+
Aji Janis 2013-04-03, 18:04
+
Aji Janis 2013-04-03, 18:15
+
John Vines 2013-04-03, 18:17
+
Eric Newton 2013-04-03, 18:19
+
Aji Janis 2013-04-03, 18:29
+
Eric Newton 2013-04-03, 18:36
+
Aji Janis 2013-04-03, 20:11
+
Christopher 2013-04-03, 20:16
+
Billie Rinaldi 2013-04-03, 20:57
+
Aji Janis 2013-04-04, 13:33
+
Eric Newton 2013-04-04, 13:55
+
Aji Janis 2013-04-04, 13:59
+
Aji Janis 2013-04-04, 14:14
+
John Vines 2013-04-04, 14:18
+
Aji Janis 2013-04-04, 14:46
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*
>
> USERJARS>
> 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
org/apache/accumulo/core/client/Instance

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
jar?

Billie

>
> *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?
+
Aji Janis 2013-04-04, 17:27
+
Billie Rinaldi 2013-04-04, 18:25
+
Aji Janis 2013-04-04, 18:41
+
Aji Janis 2013-04-04, 18:49
+
Billie Rinaldi 2013-04-04, 18:51
+
Aji Janis 2013-04-04, 19:26
+
Billie Rinaldi 2013-04-04, 19:51
+
Aji Janis 2013-04-05, 15:36
+
David Medinets 2013-04-05, 22:01
+
Keith Turner 2013-04-08, 18:14
+
David Medinets 2013-04-08, 19:03
+
Billie Rinaldi 2013-04-05, 20:06
+
Billie Rinaldi 2013-04-04, 14:09
+
Aji Janis 2013-04-03, 20:23
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB