About errors of offline GPS monitor

38 views
Skip to first unread message

lyu...@sslab.cs.nthu.edu.tw

unread,
Mar 29, 2014, 5:32:24 AM3/29/14
to stanford...@googlegroups.com
Hello, when I run offline monitor, there are 54 errors all about " package org.apache.hadoop.fs does not exist" and "cannot find symbol" such as followings.

java/gps/node/master/monitoring/debug/DebugMonitoringRunner.java:20: error: package org.apache.hadoop.fs does not exist
java/gps/node/master/monitoring/debug/DebugMonitoringRunner.java:58: error: cannot find symbol

So, how can I solve these two kinds of problems? 

Thanks everyone!

Lyuwei

lyu...@sslab.cs.nthu.edu.tw

unread,
Mar 29, 2014, 5:38:50 AM3/29/14
to stanford...@googlegroups.com
Sorry, I forgot to say these errors occurred when I run ./make_debug_monitoring_runner_jar.sh

在 2014年3月29日星期六UTC+8下午5时32分24秒,lyu...@sslab.cs.nthu.edu.tw写道:

Semih Salihoglu

unread,
Apr 6, 2014, 1:00:47 PM4/6/14
to lyuwei, stanford...@googlegroups.com
I think there's a bug in make_debug_monitoring_runner_jar.sh. It sets GPS_DIR to the current working directory but the GPS_DIR is located at the parent directory. So can you try changing in to this:

GPS_DIR="`pwd`"/../
GPS_SRC_DIR=${GPS_DIR}/src
Or to this:

CURRENT_DIR="`pwd`"
GPS_DIR=${GPS_DIR}/../
GPS_SRC_DIR=${GPS_DIR}/src


Best,


semih


--
You received this message because you are subscribed to the Google Groups "stanfordgpsusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stanfordgpsuse...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lyu...@sslab.cs.nthu.edu.tw

unread,
Apr 15, 2014, 11:31:44 PM4/15/14
to stanford...@googlegroups.com, lyuwei, se...@stanford.edu
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写道:

Semih Salihoglu

unread,
Apr 15, 2014, 11:39:46 PM4/15/14
to lyuwei, stanford...@googlegroups.com
For some reason the hadoop-core jar isn't in your classpath. see what your $LIBS_DIR is being set to. And see that $LIBS_DIR/hadoop-core-0.20.203.0.jar exists. If not you should put /hadoop-core-0.20.203.0.jar there.

Best,

semih

lyu...@sslab.cs.nthu.edu.tw

unread,
Apr 16, 2014, 2:12:36 AM4/16/14
to stanford...@googlegroups.com, lyuwei, se...@stanford.edu
So where can I set $LIB_DIR? I know that "make_gps_node_runner_jar.sh" has it. As well, I use hadoop-1.2.1 and I have modify the configuration according to your GPS-Documentation. So are there other places I should check?

在 2014年4月16日星期三UTC+8上午11时39分46秒,Semih Salihoglu写道:

Semih Salihoglu

unread,
Apr 16, 2014, 2:19:28 AM4/16/14
to lyuwei, stanford...@googlegroups.com
Then your lib_dir probably pointing to the right directory. It's specified in gps-env.sh. However the core library for hadoop 1.2.1 may not be under the lib directory. So first you should make sure that  hadoop-core-1.2.1.jar (i think, or whatever the name of the core jar is for hadoop 1.2.1) is under the $lib_dir. Then you should go into make_debug_monitoring_runner_jar.sh and change hadoop-core-0.20.203.0.jar with hadoop-core-1.2.1.jar  and run make_debug_monitoring_runner_jar.sh again.

lyu...@sslab.cs.nthu.edu.tw

unread,
Apr 16, 2014, 2:48:19 AM4/16/14
to stanford...@googlegroups.com, lyuwei, se...@stanford.edu
Thank you very much. I have just found a file called debug_monitoring_runner_manifest.txt and the pre-set hadoop-core is 1.0.4. So now everything is great. Thanks very much for your effort !

Best,
Lyuwei

在 2014年4月16日星期三UTC+8下午2时19分28秒,Semih Salihoglu写道:
Reply all
Reply to author
Forward
0 new messages