incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper
Date Wed, 22 Jun 2011 23:14:47 GMT

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

Edward J. Yoon commented on HAMA-405:
-------------------------------------

Hi,

When we create a Hama release tarball, we should put them all in
tar.gz so that users can use without building it themselves.

I think, we have to manage dependencies as compact as possible,
thinking about download size, License problems, ..., etc.

Adding below 3 dependencies is best solution, IMO.

  <dependency>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-annotations</artifactId>
    <version>6.1H.22</version>
  </dependency>
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.5.2</version>
  </dependency>
  <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.2</version>
  </dependency>

> 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

        

Mime
View raw message