warning: 'JNI_CreateJavaVM' is deprecated
Failed to execute 'chown -R'
Chronos is designed (not required) to run with multiple nodes of which one is elected master.
If you use the cURL command line tool, you can use the -L
flag and hit any Chronos node and you will get a
307 REDIRECT to the leader.
Chronos registers itself with ZooKeeper at the location /chronos/state
. This value can be changed via the configuration file.
Chronos can optionally use Cassandra for job history, reporting and statistics. By default, Chronos attempts to connect to the metrics
keyspace.
To use this feature, you must at a minimum:
metrics
and configurable with --cassandra_keyspace
)
sql
CREATE KEYSPACE IF NOT EXISTS metrics
WITH REPLICATION = {
'class' : 'SimpleStrategy', 'replication_factor' : 3
};
--cassandra_contact_points
flag to Chronos with a comma-separated list of Cassandra contact pointsError 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.
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
~/.*rc
to always use 1.7$JAVA_HOME/include
and $JAVA_HOME/include/darwin
.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
mesos/build
as advised by the mesos READMEExample:
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
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 bundling, 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.
Failed to execute 'chown -R'
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"
Please see the support page for information on how to report bugs.