Hadoop Nodemanager and Resourcemanager not starting

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

+3
source share
2 answers

These instructions are outdated and appear to reflect one of the earliest alpha releases. Make this change: YARN_HOME → HADOOP_YARN_HOME. The environment variable has changed some time ago. This should fix it for you.

You can use Apache Ambari 1.4.1, which makes it easy to install Hadoop and many of its ecosystem components. You can see http://docs.hortonworks.com/#2.0 on how to install using Ambari.

+3
source

Source: https://habr.com/ru/post/956897/


All Articles