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
*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*

USERJARSCLASSNAME=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

*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?
>>>
>>>
>>> On Thu, Apr 4, 2013 at 9:55 AM, Eric Newton <[EMAIL PROTECTED]>wrote:
>>>
>>>> I was able to run the example, as written in
>>>> docs/examples/README.bulkIngest substituting my
>>>> instance/zookeeper/user/password information:
>>>>
>>>> $ pwd
>>>> /home/ecn/workspace/1.4.3
>>>> $ ls
>>>> bin      conf     docs  LICENSE  NOTICE   README  src     test
>>>> CHANGES  contrib  lib   logs     pom.xml  target  walogs
>>>>
>>>> $ ./bin/accumulo
>>>> org.apache.accumulo.examples.simple.mapreduce.bulk.SetupTable test
>>>> localhost root secret test_bulk row_00000333 row_00000666
>>>>
>>>> $ ./bin/accumulo
>>>> org.apache.accumulo.examples.simple.mapreduce.bulk.GenerateTestData 0 1000
>>>> bulk/test_1.txt
>>>>
>>>> $ ./bin/tool.sh lib/examples-simple-*[^cs].jar
>>>> org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample test
>>>> localhost root secret test_bulk bulk tmp/bulkWork