- [osx] making mesos fails on
warning: 'JNI_CreateJavaVM' is deprecated
- Running Chronos fails with the error: java.lang.UnsatisfiedLinkError: org.apache.mesos.state.AbstractState.__fetch(Ljava/lang/String;)J
- My Web UI is not showing up!
- When running jobs locally I get an error like
Failed to execute 'chown -R'
- I found a bug!
Error message such as:
conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
This error is the result of OSX shipping with an outdated version of the JDK and associated libraries. To resolve this issue, do the following.
- Download and install JDK7.
- Set JDK7 as active:
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
Note: Stick this in your~/.*rc
to always use 1.7 - Find your JNI headers, these should be in
$JAVA_HOME/include
and$JAVA_HOME/include/darwin
. - Configure mesos with
JAVA_CPPFLAGS
set to the JNI path.
Example Assumptions:
$JAVA_HOME
in this example is/Library/Java/JavaVirtualMachines/jdk1.7.0_12.jdk/Contents/Home
- The current working directory is
mesos/build
as advised by the mesos README
Example:
JAVA_CPPFLAGS='-I/Library/Java/JavaVirtualMachines/jdk1.7.0_12.jdk/Contents/Home/include/ -I/Library/Java/JavaVirtualMachines/jdk1.7.0_12.jdk/Contents/Home/include/darwin/' ../configure
Running Chronos fails with the error: java.lang.UnsatisfiedLinkError: org.apache.mesos.state.AbstractState.__fetch(Ljava/lang/String;)J
This means you're using a mesos-jar file that is incompatible with the version of Mesos you're running.
If you want to run chronos with a different version of mesos than in the pom.xml file, override the version by issuing mvn package -Dmesos.version=0.14.0-rc4
.
Please note, this must be a jar file version that's available from one of the repositories listed in the pom.xml file.
For asset bundeling, you need node installed. If you're seeing a 403 when trying to access the web-ui, it's likely that node was not present during the mvn package
step.
See docs/WEBUI.md.
If you get an error such as:
Failed to execute 'chown -R 0:0 '/tmp/mesos/slaves/executors/...' ... Undefined error: 0
Failed to launch executor`
You can try starting your mesos slaves with switch users disabled. To do this, start your slaves in the following manner:
MESOS_SWITCH_USER=0 bin/mesos-slave.sh --master=zk://localhost:2181/mesos --resources="cpus:8,mem:68551;disk:803394"
That's too bad, please start by consulting our guidelines on Reporting Bugs.