The problem has been solved with your advice and I really appreciate that. And then when I run the order of " java -jar debug_monitoring_runner.jar -hcf /home/hadoop/hadoop-1.2.1/conf/core-site.xml -msfp /user/hadoop/gps/output/quick-start-machine-stats -port 4444" , another error occurred as followings.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream
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)
... 6 more
I have checked that the hadoop_home is added to the /etc/profile, and it has been sourced. So Are there some possible methods to solve this problem? Thank you for your help very much!
Best regards,
Lyuwei
在 2014年4月7日星期一UTC+8上午1时00分47秒,Semih Salihoglu写道: