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

Joseph Boyd commented on HAMA-405:
----------------------------------

I'd been focusing on commons-cli, but I think you're right that slf4j-log4j12 
and jetty-annotations are needed dependencies.

Neither are currently included as a transitive dependency from one of Hama's 
other dependencies.

I have, nearly finished, an updated pom that manually excludes each of the 
unnecessary items from Hama's various dependencies.  I'll clean up and submit 
the patch tomorrow if we're still interested, otherwise, I'll work up one that 
just adds the three dependencies in Edward's comment above, leaving 
<excludeTransitive/> alone.


> NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama 
> zookeeper
> --------------------------------------------------------------------------------------
>
>                 Key: HAMA-405
>                 URL: https://issues.apache.org/jira/browse/HAMA-405
>             Project: Hama
>          Issue Type: Bug
>          Components: build 
>    Affects Versions: 0.3.0
>            Reporter: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch
>
>
> It was reported on the mailing list that the current SVN head generates an 
> error when running zookeeper on the command line
> $ bin/hama zookeeper
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/ParseException
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hama.ZooKeeperRunner.main(ZooKeeperRunner.java:41)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.cli.ParseException
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to