Offline Monitoring.

14 views
Skip to first unread message

Suijian Zhou

unread,
Apr 1, 2014, 11:06:50 AM4/1/14
to stanford...@googlegroups.com
Hi,
  I'm trying the offline monitoring of GPS. The debug_monitoring_runner.jar is compiled with no problem, but when I try to run the following:
~/gps/trunk>java -jar ./debug_monitoring_runner.jar -hcf /home/sxzhou/HadoopSetupTest/hadoop-1.2.1/conf/core-site.xml -msfp ~/gps/trunk/master-scripts/logs/quick-start-machine-stats -port 4444

I get the output of:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream
    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)
Could not find the main class: gps.node.master.monitoring.debug.DebugMonitoringRunner. Program will exit.

But the debug_monitoring_runner.jar is there under ~/gps/trunk and it does contain:
gps/node/master/monitoring/debug/DebugMonitoringRunner.class
in the jar file. Any hints? Thanks!

  Best Regards,
  Suijian

Young Han

unread,
Apr 2, 2014, 11:50:34 AM4/2/14
to stanford...@googlegroups.com
Did you update the Hadoop dependencies in ~/gps/trunk/debug_monitoring_runner_manifest.txt and make_debug_monitoring_runner_jar.sh? By default it uses 0.20.203 or something, so that may be why.

Also, I believe debug monitoring expects machine stats to be on HDFS (e.g., /user/username/gps/machine-stats)... but I may be wrong.

Young
Reply all
Reply to author
Forward
0 new messages