Open panwaria opened 10 years ago
just tried building today and got the same test failure.
Thankfully I'm not the only one. :) I'm still facing the same issue. I have to do mvn package multiple times until the jar is created. I haven't tried but one workaround is to disable the tests from the project.
The ZK tests are somewhat flaky. I should just disable that one.
I have the same issue. I don't have ZooKeeper on the same machine as I'm building chronos. It would be nice to be able to change the ZooKeeper URL with some parameter. Or disable tests which depend on other components.
mvn package -DskipTests=true
works fine.
I also got the same test error issue.
@deric yes, Running "mvn package -DskipTests=true" can skip the zookeeper test. But when I run the command "java -cp target/chronos*.jar org.apache.mesos.chronos.scheduler.Main --master zk://localhost:2181/mesos --zk_hosts localhost:2181"
It will appear the following error:
Failed to load native Mesos library from /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
[2016-04-18 06:20:51,841] ERROR Chronos has exited because of an unexpected error: no mesos in java.library.path (org.apache.mesos.chronos.scheduler.Main$:51)
java.lang.UnsatisfiedLinkError: no mesos in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1889)
@wangqunOne I met the same problem, the following error appears, Failed to load native Mesos library from /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Do you still remember how to solve this? Thx so much
Hi,
Chronos (with the latest code at this date) compiles fine, but it throws up following errors while running Tests during
mvn package
:The errors mentioned above appear randomly each time
mvn package
is executed. 'mvn package' runs successfully 1 in 5 times on an average.Someone suggested to increase the
initLimit
inzoo.cfg
(link: http://efod.se/blog/archive/2013/02/09/zookeeper-initlimit ). I tried increasing it from 10 to 10000, but still it is throwing up the errors mentioned above.Build environment: CentOS 64bit (VM instance) with Zookeper service already running.
Anyone having a clue what might be happening here?