You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Joseph Boyd (JIRA)" <ji...@apache.org> on 2011/06/23 00:52:47 UTC

[jira] [Created] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

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


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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-405:
--------------------------------

    Attachment: HAMA-405_v4.patch

re-attach.

> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.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

        

[jira] [Reopened] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reopened HAMA-405:
---------------------------------


{code}Hi Edward,

first sorry for the late response.

- checksums and signature are ok
- rat-check looks ok (CHANGES.txt and conf/groomservers are not
approved, you should add the apache-rat-plugin to your pom.xml)
- Ant and Maven builds worked
- license and notice file looks ok except for the servlet.jar, see below

One last issue I found, which is a blocker IMO, is
lib/servlet-api-2.5-6.1.14.jar. This is obviously from Jetty (there is
a META-INF/maven/org.mortbay.jetty) and hence distributed under CDDL
(see http://svn.codehaus.org/jetty/jetty/tags/jetty-6.1.14/LICENSES/NOTICE.txt).
I think you have two options:
- either add CDDL to LICENSE.txt and the notice from
http://svn.codehaus.org/jetty/jetty/tags/jetty-6.1.14/LICENSES/NOTICE.txt
to the NOTICE.txt file
- or you use servlet-api.jar from Tomcat (e.g. from
http://repo1.maven.org/maven2/org/apache/tomcat/servlet-api/6.0.32/)
which is pure Apache License.

Kind Regards,
Stefan
{code}

Let's use the servlet-api.jar from Tomcat.

I'll fix it. 

> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, 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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053520#comment-13053520 ] 

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

While looking into this, I suspect the problem was introduced in HAMA-402 , where several dependencies were removed from the advice of the 'mvn dependency:analyze' report.

The report is correct, hama doesn't depend on those item, but instead has a transitive dependency on them. As one example, commons-cli jar, referenced in the error in the description, is required by hadoop-core, not by hama.



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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Boyd updated HAMA-405:
-----------------------------

    Attachment: HAMA-405.patch

> 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

        

[jira] [Resolved] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-405.
---------------------------------

    Resolution: Fixed

I've just committed this.

> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Boyd updated HAMA-405:
-----------------------------

    Fix Version/s: 0.3.0
           Status: Patch Available  (was: Open)

Patch which removed the <excludeTransitive> option in pom.xml

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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054080#comment-13054080 ] 

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

> Should we check and add useless dependencies to exclusion list every version update time?

Yes, reviewing how the dependencies change with each JIRA that add/changes a pom.xml dependency is needed.

It's seems plausible that that tracking changes in the dependency graph could be automated, but a quick google search of Hudson plugins turned up nothing for me.

> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, 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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Thomas Jungblut (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055328#comment-13055328 ] 

Thomas Jungblut commented on HAMA-405:
--------------------------------------

+1. builds and starts for me.

> 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
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.patch, Hama-405_final.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

        

[jira] [Reopened] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reopened HAMA-405:
---------------------------------


{code}

the logs showed
2011-06-25 08:13:48,984 ERROR org.apache.hama.bsp.GroomServer: Got fatal exception while reinitializing GroomServer: java.net.UnknownHostException: unknown host: local
       at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:195)
       at org.apache.hadoop.ipc.Client.getConnection(Client.java:850)
       at org.apache.hadoop.ipc.Client.call(Client.java:720)
       at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
       at $Proxy4.getProtocolVersion(Unknown Source)
       at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359)
       at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:346)
       at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:383)
       at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:314)
       at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:291)
       at org.apache.hama.bsp.GroomServer.initialize(GroomServer.java:279)
       at org.apache.hama.bsp.GroomServer.run(GroomServer.java:600)
       at java.lang.Thread.run(Thread.java:680)

and yes, jps was only showing zookeeper, but no groomaster
79938 Jps
79830 ZooKeeperRunner

As temporary workaround, I added local to my /etc/hosts (mac os x 10.6).

I relaunched, and now jps shows:
80227 GroomServerRunner
80134 ZooKeeperRunner
80165 BSPMasterRunner


--> could it be that local value is interpreted as a hostname ?
<name>bsp.master.address</name>
<value>local</value>


Going to http://localhost:40013/ redirects me to http://localhost:40013/bspmaster.jsp which shows a 500
HTTP ERROR 500
Problem accessing /bspmaster.jsp. Reason:
   JSP support not configured

--> probably jetty-jsp dependency missing in the dist.

Tks
{code}

Exclusions seems too complex!

I'd like to revert this patch and add only used dependencies if you are ok.

> 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
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-405:
--------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Thanks Joseph!, Fixed.

> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, 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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053546#comment-13053546 ] 

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

How about manually excluding all the current transitive dependencies except for the above 3 (jetty/logforj/cli).

While a bit more verbose in the pom.xml, it would keep the distributed dependencies short, and let the pom.xml properly declare only direct dependencies.

I'm happy to submit a patch for that (almost done...)


> 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

        

[jira] [Assigned] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HAMA-405:
-----------------------------------

    Assignee: Edward J. Yoon  (was: Joseph Boyd)

> 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
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-405:
--------------------------------

    Attachment: HAMA-405_again.patch

- added version properties
- added slf4j license
- excluded servlet-api from jetty

> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.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

        

[jira] [Resolved] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-405.
---------------------------------

    Resolution: Fixed

Fixed.

> 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
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.patch, Hama-405_final.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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053637#comment-13053637 ] 

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

Oh, I love that idea.

> 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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053522#comment-13053522 ] 

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

Rather than reverting HAMA-402 , I'd prefer to fix this by removing this line in pom.xml (line 205)  :
                   <excludeTransitive>true</excludeTransitive>

Patch forthcoming.

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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-405:
--------------------------------

    Attachment: Hama-405_final.patch

This patch fixes all problems.

Please review this patch.


> 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
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, HAMA-405.patch, HAMA-405_again.patch, HAMA-405_v4.patch, Hama-405_final.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

        

[jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Assigned] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HAMA-405:
-----------------------------------

    Assignee: Joseph Boyd

BTW, I have a question. 

Should we check and add useless dependencies to exclusion list every version update time?

> 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
>            Assignee: 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

        

[jira] [Updated] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper

Posted by "Joseph Boyd (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Boyd updated HAMA-405:
-----------------------------

    Attachment: HAMA-405.patch

Updated patch:

Removes the excludeTransitive option from the copy-dependencies target:
 <excludeTransitive>true</excludeTransitive>

Specifically excludes all of the current transitive dependencies except two :
 commons-cli : A necessary dep of hadoop-core, seen in the issue description
 servlet-api : A necessary dep of jetty, needed to compile org.apache.hama.http.HttpServer

Patch also adds several new dependencies, identified by Edward Yoon:
  slf4j-log4j12
  jetty-annotations
  jetty-plus  : A necessary transitive dep of jetty-annotations, needed by org.apache.hama.MiniBSPCluster (excluding it generates ClassNotFoundException: org.mortbay.jetty.plus.webapp.EnvConfiguration during the build when the tests try to start the bspmaster webapp)
  jetty-naming : A necessary dep of org.apache.hama.http.HttpServer.java, to get class org.mortbay.naming.InitialContextFactory


> 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
>            Assignee: Joseph Boyd
>             Fix For: 0.3.0
>
>         Attachments: HAMA-405.patch, 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