You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Lee Dongjin (JIRA)" <ji...@apache.org> on 2014/09/23 17:24:34 UTC

[jira] [Updated] (HAMA-920) start-bspd.sh fails with hadoop 2.5.x

     [ https://issues.apache.org/jira/browse/HAMA-920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lee Dongjin updated HAMA-920:
-----------------------------
    Affects Version/s: 0.6.4
               Status: Patch Available  (was: Open)

Here is my solution. I added dependency on commons-collections (3.2.1), for hadoop2 profile.

> start-bspd.sh fails with hadoop 2.5.x
> -------------------------------------
>
>                 Key: HAMA-920
>                 URL: https://issues.apache.org/jira/browse/HAMA-920
>             Project: Hama
>          Issue Type: Bug
>    Affects Versions: 0.6.4
>            Reporter: Lee Dongjin
>         Attachments: hama-920.patch
>
>
> When build and run hama 0.6.4 with hadoop 2.5.1, start-bspd.sh fails with following messages:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/UnmodifiableMap
> 	at org.apache.hadoop.conf.Configuration$DeprecationContext.<init>(Configuration.java:394)
> 	at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:434)
> 	at org.apache.hama.zookeeper.ZKServerTool.main(ZKServerTool.java:37)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.UnmodifiableMap
> 	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:425)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> 	... 3 more
> starting bspmaster, logging to /home/dongjinleekr/opt/hama-0.6.4/bin/../logs/hama-dongjinleekr-bspmaster-dongjinleekr-unix.out
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/UnmodifiableMap
> 	at org.apache.hadoop.conf.Configuration$DeprecationContext.<init>(Configuration.java:394)
> 	at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:434)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:62)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
> 	at org.apache.hama.BSPMasterRunner.main(BSPMasterRunner.java:56)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.UnmodifiableMap
> 	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)
> localhost: starting groom, logging to /home/dongjinleekr/opt/hama-0.6.4/bin/../logs/hama-dongjinleekr-groom-dongjinleekr-unix.out
> localhost: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/UnmodifiableMap
> localhost: 	at org.apache.hadoop.conf.Configuration$DeprecationContext.<init>(Configuration.java:394)
> localhost: 	at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:434)
> localhost: 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:62)
> localhost: 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
> localhost: 	at org.apache.hama.GroomServerRunner.main(GroomServerRunner.java:59)
> localhost: Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.UnmodifiableMap
> localhost: 	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> localhost: 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> localhost: 	at java.security.AccessController.doPrivileged(Native Method)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)