2013年8月13日星期二

Installed before hadoop suddenly can not run a

Because of my mistake .. careless use of the root user start-all ( originally created by user-initiated ) .
So then has not started , then I intend to put data cleared away , and then format it again , but still no change .
I first delete all the files under hadoop.tmp.dir then under / tmp PID of all hadoop deleted.
final format again.
Ask the experts, help me to support chi move.
error log file can not be found in class

2012-12-28 15:54:16 org.apache.hadoop.mapred.JobTracker main
严重: java.lang.NoClassDefFoundError: org/apache/log4j/AppenderSkeleton
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.hadoop.metrics2.source.JvmMetricsSource.getEventCounters(JvmMetricsSource.java:185)
at org.apache.hadoop.metrics2.source.JvmMetricsSource.getMetrics(JvmMetricsSource.java:119)
at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.getMetrics(MetricsSourceAdapter.java:188)
at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.updateJmxCache(MetricsSourceAdapter.java:166)
at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.getMBeanInfo(MetricsSourceAdapter.java:145)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getNewMBeanClassName(DefaultMBeanServerInterceptor.java:321)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:307)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
at org.apache.hadoop.metrics2.util.MBeans.register(MBeans.java:56)
at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.start(MetricsSourceAdapter.java:89)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.registerSource(MetricsSystemImpl.java:210)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:181)
at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.register(DefaultMetricsSystem.java:55)
at org.apache.hadoop.metrics2.source.JvmMetricsSource.create(JvmMetricsSource.java:102)
at org.apache.hadoop.metrics2.source.JvmMetricsSource.create(JvmMetricsSource.java:107)
at org.apache.hadoop.mapred.JobTrackerMetricsSource.<init>(JobTrackerMetricsSource.java:106)
at org.apache.hadoop.mapred.JobTrackerInstrumentation.create(JobTrackerInstrumentation.java:185)
at org.apache.hadoop.mapred.JobTrackerInstrumentation.create(JobTrackerInstrumentation.java:180)
at org.apache.hadoop.mapred.JobTracker.createInstrumentation(JobTracker.java:1683)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2207)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:1888)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:1882)
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:311)
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:302)
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:297)
at org.apache.hadoop.mapred.JobTracker.main(JobTracker.java:4788)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.AppenderSkeleton
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 50 more



------ Solution ------------------------------------- -------
log files are also deleted
------ For reference only ----------------------- ----------------
I think this class is not found .. look inside log4j classes , I went to the lib folder , find the log4j package is not . .. add yourself up like a

没有评论:

发表评论