I am trying to install the last single node Hadoop 2.2 cluster on Ubuntu 13.10 64 bit. OS is a new installation, and I tried to use both 64-bit and java-7 with the java-6 interface.
After completing the steps from this and after the failure, from this , I cannot start nodemanager and resourcemanager using the command:
sbin/yarn-daemon.sh start nodemanager sudo sbin/yarn-daemon.sh start nodemanager
and resource manager with
sbin/yarn-daemon.sh start resourcemanager sudo sbin/yarn-daemon.sh start resourcemanager
and both with an error:
starting nodemanager, logging to /home/hduser/yarn/hadoop-2.2.0/logs/yarn-hduser-nodemanager-ubuntu.out Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/service/CompositeService at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:788) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:447) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Resource Manager crashes with a similar error: NoClassDefFoundError
I tried this for many hours and tried google and nothing worked. Please let me know what I missed. This and this link while looking for a solution didn’t work.
I tried using both java-6 and java-7 64 bit, without success.
Edit
The accepted answer managed to get rid of the exception, and all the daemons now begin, but when completing the tasks mentioned in this question, there is still an exception = "/ questions / 956895 / cannot-initialize-cluster-exception-while-running-job-on- hadoop-2 "> this
source share