accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Carlson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-911) Get ClassNotFoundException when running Accumulo 1.4.0 Bulk Ingest Example
Date Mon, 17 Dec 2012 20:40:13 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534281#comment-13534281
] 

Pete Carlson commented on ACCUMULO-911:
---------------------------------------

I tried what you said by comma separating the three jar files, but now I get an error in opening
zip file:

{noformat}
[root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/tool.sh -libjars lib/examples-simple-1.4.0.jar,lib/examples-simple-1.4.0-javadoc.jar,lib/examples-simple-1.4.0-sources.jar
org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample cybersa zookeeper1 root
**** test_bulk bulk tmp/bulkWork
Exception in thread "main" java.io.IOException: Error opening job jar: lib/examples-simple-1.4.0.jar,lib/examples-simple-1.4.0-javadoc.jar,lib/examples-simple-1.4.0-sources.jar
        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:131)
        at java.util.jar.JarFile.<init>(JarFile.java:150)
        at java.util.jar.JarFile.<init>(JarFile.java:87)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
[root@ip-10-151-7-8 accumulo-1.4.0]#
{noformat}

I also tried an inidividual jar file like you mentioned, with wierd results (each individual
shown below):

{noformat}
[root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/tool.sh -libjars lib/examples-simple-1.4.0.jar
org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample cybersa zookeeper1 root
**** test_bulk bulk tmp/bulkWork                                        java.io.FileNotFoundException:
File cybersa does not exist.
        at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:338)
        at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:259)
        at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:375)
        at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)
        at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:138)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59)
        at org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample.main(BulkIngestExample.java:163)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

ERROR: Wrong number of parameters: 6 instead of 7.
accumulo org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample <instanceName>
<zooKeepers> <username> <password> <table> <input dir> <work
dir>
[root@ip-10-151-7-8 accumulo-1.4.0]#
{noformat}

{noformat}
[root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/tool.sh -libjars lib/examples-simple-1.4.0-javadoc.jar
org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample cybersa zookeeper1 root
**** test_bulk bulk tmp/bulkWork
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        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)
[root@ip-10-151-7-8 accumulo-1.4.0]#
{noformat}

{noformat}
[root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/tool.sh -libjars lib/examples-simple-1.4.0-sources.jar
org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample cybersa zookeeper1 root
**** test_bulk bulk tmp/bulkWork
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.accumulo.examples.simple.mapreduce.bulk.BulkIngestExample
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        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)
[root@ip-10-151-7-8 accumulo-1.4.0]#
{noformat}
                
> Get ClassNotFoundException when running Accumulo 1.4.0 Bulk Ingest Example
> --------------------------------------------------------------------------
>
>                 Key: ACCUMULO-911
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-911
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Pete Carlson
>
> Trying to follow the steps in the README.bulkIngest for Accumulo 1.4.0 but get a ClassNotFound
Exception.  Has anyone else seen this?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message