A Hadoop hard to find error
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting http://www.aliyun.com/zixun/aggregation/11696.html">namenodes on [Master132.Hadoop]
Master132.Hadoop: starting namenode, logging to /usr/hadoop/logs/hadoop-hadoop-namenode-Master132.Hadoop.out
Slave110.Hadoop: /usr/hadoop/sbin/hadoop-daemon.sh: line 69: [: .out: integer expression expected
Slave110.Hadoop: starting datanode, logging to /usr/hadoop/logs/hadoop-hadoop-datanode-Slave110.Hadoop
Slave131.Hadoop: starting datanode, logging to /usr/hadoop/logs/hadoop-hadoop-datanode-Slave131.Hadoop.out
Slave141.Hadoop: starting datanode, logging to /usr/hadoop/logs/hadoop-hadoop-datanode-Slave141.Hadoop.out
Slave110.Hadoop: Exception in thread "main" java.lang.NoClassDefFoundError: / log
Slave110.Hadoop: Caused by: java.lang.ClassNotFoundException: .log
Slave110.Hadoop: at java.net.URLClassLoader $ 1.run (URLClassLoader.java:202)
Slave110.Hadoop: at java.security.AccessController.doPrivileged (820.html "> Native Method)
Slave110.Hadoop: at java.net.URLClassLoader.findClass (URLClassLoader.java:190)
Slave110.Hadoop: at java.lang.ClassLoader.loadClass (ClassLoader.java:306)
Slave110.Hadoop: at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:301)
Slave110.Hadoop: at java.lang.ClassLoader.loadClass (ClassLoader.java:247)
Slave110.Hadoop: Could not find the main class: .log. Program will exit.
Starting secondary namenodes [Master132.Hadoop]
Master132.Hadoop: starting secondarynamenode, logging to /usr/hadoop/logs/hadoop-hadoop-secondarynamenode-Master132.Hadoop.out
starting yarn daemons
starting resourcemanager, logging to /usr/hadoop/logs/yarn-hadoop-resourcemanager-Master132.Hadoop.out
Slave110.Hadoop: /usr/hadoop/sbin/yarn-daemon.sh: line 72: [: .out: integer expression expected
Slave110.Hadoop: starting nodemanager, logging to /usr/hadoop/logs/yarn-hadoop-nodemanager-Slave110.Hadoop
Slave131.Hadoop: starting nodemanager, logging to /usr/hadoop/logs/yarn-hadoop-nodemanager-Slave131.Hadoop.out
Slave141.Hadoop: starting nodemanager, logging to /usr/hadoop/logs/yarn-hadoop-nodemanager-Slave141.Hadoop.out
Slave110.Hadoop: Exception in thread "main" java.lang.NoClassDefFoundError: / log
Slave110.Hadoop: Caused by: java.lang.ClassNotFoundException: .log
Slave110.Hadoop: at java.net.URLClassLoader $ 1.run (URLClassLoader.java:202)
Slave110.Hadoop: at java.security.AccessController.doPrivileged (Native Method)
Slave110.Hadoop: at java.net.URLClassLoader.findClass (URLClassLoader.java:190)
Slave110.Hadoop: at java.lang.ClassLoader.loadClass (ClassLoader.java:306)
Slave110.Hadoop: at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:301)
Slave110.Hadoop: at java.lang.ClassLoader.loadClass (ClassLoader.java:247)
Slave110.Hadoop: Could not find the main class: .log. Program will exit.
Weekends, originally built Hadoop cluster suddenly reported in the start of the above error! A node is not easy! After a variety of search, or not resolved.
Today finally found the reason! datenode node Slave110.Hadoop behind the host name do not know when to add a space! Delete just fine! collapse