The cluster we are running is on standalone mode and not using Mesos management however when we are trying to run the example "spark.examples.SparkPi 192.168.1.35[2]" it is returning the below error.
After the error, we tried to compile the mesos.0.9.0 it always complains about JAVA_HOME. We are using JDK1.7. Please help.
== error from running spark.examples.SparkPi
Failed to load native Mesos library from
Exception in thread "main" java.lang.UnsatisfiedLinkError: no mesos in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1856)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at org.apache.mesos.MesosNativeLibrary.load(MesosNativeLibrary.java:46)
at spark.SparkContext.<init>(SparkContext.scala:174)
at spark.SparkContext.<init>(SparkContext.scala:83)
at spark.examples.SparkPi$.main(SparkPi.scala:13)
at spark.examples.SparkPi.main(SparkPi.scala)
checking whether or not we can build using the JDK... ./libtool: line 1104: g++: command not found
configure: error: failed to build against JDK (using libtool)