Closed zangzhw closed 11 years ago
I skip the test for surefire and it seems OK now.
how you did the skip?
-Dmaven.test.skip=true
http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html
<skipTests>true</skipTests>
+1 This is still a bug. Adding: -DskipTests=true
after mvn package
bypasses it.
Update.
I skipped test and successfully install the chronos.
It seems OK, but when I try to create a test job, such as echo "foo" >> /tmp/chronos_test
or date > /temp/test_date
,both "#ERROR" and "SUCCESS" are 0 on WebUI. It seems that the job is not executed, while I tried to "force run" the task, it's okay, and the last success shows the correct time.
I tried to change the logging level in local_scheduler_nozk.yml to ALL, there was some folder generated in /tmp/mesos/slaves/, like /tmp/mesos/slaves/<...>/frameworks/<...>/executors/default/<...>/runs/<...>/, but there were no log file in these folder.
I tried latest mesos 0.12.x and the revision chronos install script provided, neither works.
Is this a bug of chronos or mesos?
Need Help. Thank you.
@zangzhw is this still an issue with a fresh pull? Additionally, could you please provide the output from /usr/local/chronos/target/surefire-reports
Hi Andrew @andykram,
I successfully finished installation on my laptop instead of the VM (both run Ubuntu 12.04 and updated) after a fresh pull several days ago.
But there is still error in the VM environment. Here are the output on the VM. It shown Could not find artifact org.apache.mesos:mesos:jar:0.12.0-SNAPSHOT
. I checked /root/.m2/repository/org/apache/mesos/mesos/, the 0.12.0-SNAPSHOT did exist.
# ./bin/installer.bash
Welcome to the interactive chronos installation. This script will first install mesos and then chronos.
Depending on your hardware and internet connection, this script might take 15 - 25 minutes as we're compiling mesos from source.
If you run into any issues, please check the FAQ in the chronos repo.
Do you have mesos installed already? Type 'yes' or 'no' followed by [ENTER]:
yes
Type the path of the compiled mesos installation followed by [ENTER]:
/usr/local/mesos
Skipping mesos installation
/usr/local/mesos /usr/local/chronos
Installing snapshot of mesos version 0.12.0 into local mvn repository
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /usr/local/mesos/src/build/src/mesos-0.12.0.jar
./src/build12/src/mesos-0.12.0.jar to /root/.m2/repository/org/apache/mesos/mesos/0.12.0-SNAPSHOT/mesos-0.12.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.135s
[INFO] Finished at: Mon May 20 17:35:45 PDT 2013
[INFO] Final Memory: 5M/30M
[INFO] ------------------------------------------------------------------------
Replacing pom.xml mesos dependency
/usr/local/chronos
/usr/local/chronos/bin /usr/local/chronos
Installing chronos
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.airbnb:chronos:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin net.alchim31.maven:scala-maven-plugin @ line 369, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building chronos 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.352s
[INFO] Finished at: Mon May 20 17:35:50 PDT 2013
[INFO] Final Memory: 9M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project chronos: Could not resolve dependencies for project com.airbnb:chronos:jar:1.0-SNAPSHOT: Could not find artifact org.apache.mesos:mesos:jar:0.12.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
# ls /root/.m2/repository/org/apache/mesos/mesos/
0.12.0-SNAPSHOT maven-metadata-local.xml
On other other hand, chronos on my laptop was installed but has some problem when running as I mentioned in previous comment, the scheduled task doesn't success while the force run is okay.
@andykram I just did a fresh pull on my laptop and re-install the chronos it seems ok on my laptop, while still failed on my VM.
I've not been having problems in Vagrant with a 12.04 image, but on our cloud server I am seeing this problem.
-DskipTests=true does allow this to work on the AWS image.
@andykram here's the dir listing for /usr/local/chronos/target/surefire-reports. not sure which one's pertinent.
com.airbnb.scheduler.api.SerDeTest.txt
com.airbnb.scheduler.jobs.graph.JobGraphSpec.txt
com.airbnb.scheduler.jobs.Iso8601ExpressionParserSpec.txt
com.airbnb.scheduler.jobs.JobSchedulerIntegrationTest.txt
com.airbnb.scheduler.jobs.JobSchedulerSpec.txt
com.airbnb.scheduler.jobs.JobUtilsSpec.txt
com.airbnb.scheduler.jobs.ScheduleStreamSpec.txt
com.airbnb.scheduler.jobs.TaskManagerSpec.txt
com.airbnb.scheduler.state.PersistenceStoreSpec.txt
TEST-com.airbnb.scheduler.api.SerDeTest.xml
TEST-com.airbnb.scheduler.jobs.graph.JobGraphSpec.xml
TEST-com.airbnb.scheduler.jobs.Iso8601ExpressionParserSpec.xml
TEST-com.airbnb.scheduler.jobs.JobSchedulerIntegrationTest.xml
TEST-com.airbnb.scheduler.jobs.JobSchedulerSpec.xml
TEST-com.airbnb.scheduler.jobs.JobUtilsSpec.xml
TEST-com.airbnb.scheduler.jobs.ScheduleStreamSpec.xml
TEST-com.airbnb.scheduler.jobs.TaskManagerSpec.xml
TEST-com.airbnb.scheduler.state.PersistenceStoreSpec.xml
Which version of java are you using? The test failures went away after I downgraded the java jre/jdk from 1.7 to 1.6.
@deanchen Thank you. I used java 1.7. I did try 1.6 before but there were other errors. I didn't try 1.6 with latest chronos code, I will try it later.
I'm running 1.7 as 1.6 introduced a Scala compile error
java -version java version "1.7.0_21" OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
This is a bug of OpenJDK 1.6. Closing the issue!
I tried to install the chronos on Ubuntu 12.04 which has been updated. I searched on Google but the result doesn't help. So I just wonder if there is a bug or I have done something wrong.
Here is part of the output
I found this post https://github.com/airbnb/chronos/issues/21 and tried to run
mvn clean
and thenmvn package
, but still failed when I runmvn package
the maven and java I used is as following:
Thank you!