ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "李思宇" <siyu...@criwell.com>
Subject build ambari source with problem
Date Fri, 21 Aug 2015 09:56:59 GMT
Hi 
I try to build ambari from src,  when run the following command, there is an error:

RHEL (CentOS 5 or 6) & SUSE (SLES 11):mvn -B clean install package rpm:rpm -DnewVersion=2.1.0 -DskipTests
-Dpython.ver="python >= 2.6"

[INFO] Building Ambari Metrics Collector 1.0.0-01
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/sqlline/sqlline/1.1.2/sqlline-1.1.2.pom
[WARNING] The POM for sqlline:sqlline:jar:1.1.2 is missing, no dependency information available
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/org/apache/hadoop/hadoop-common/maven-metadata.xml
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/org/apache/hadoop/hadoop-annotations/maven-metadata.xml
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/org/apache/hadoop/hadoop-yarn-common/maven-metadata.xml
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/org/apache/hadoop/hadoop-yarn-api/maven-metadata.xml
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/org/apache/hadoop/hadoop-yarn-server-common/maven-metadata.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ....................................... SUCCESS [10.152s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.241s]
[INFO] Ambari Web ........................................ SUCCESS [1:08.004s]
[INFO] Ambari Views ...................................... SUCCESS [2.289s]
[INFO] Ambari Admin View ................................. SUCCESS [31.139s]
[INFO] ambari-metrics .................................... SUCCESS [0.690s]
[INFO] Ambari Metrics Common ............................. SUCCESS [1.225s]
[INFO] Ambari Metrics Hadoop Sink ........................ SUCCESS [3.206s]
[INFO] Ambari Metrics Flume Sink ......................... SUCCESS [1.749s]
[INFO] Ambari Metrics Kafka Sink ......................... SUCCESS [1.898s]
[INFO] Ambari Metrics Storm Sink ......................... SUCCESS [10.978s]
[INFO] Ambari Metrics Collector .......................... FAILURE [4.662s]
[INFO] Ambari Metrics Monitor ............................ SKIPPED
[INFO] Ambari Metrics Assembly ........................... SKIPPED
[INFO] Ambari Server ..................................... SKIPPED
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] Ambari Client ..................................... SKIPPED
[INFO] Ambari Python Client .............................. SKIPPED
[INFO] Ambari Groovy Client .............................. SKIPPED
[INFO] Ambari Shell ...................................... SKIPPED
[INFO] Ambari Python Shell ............................... SKIPPED
[INFO] Ambari Groovy Shell ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:17.937s
[INFO] Finished at: Fri Aug 21 16:21:28 CST 2015
[INFO] Final Memory: 58M/752M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ambari-metrics-timelineservice: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-timelineservice:jar:1.0.0-01: Failed to collect dependencies for [org.apache.phoenix:phoenix-core:jar:4.2.0.2.2.0.0-2041 (compile), commons-lang:commons-lang:jar:2.5 (compile), org.apache.ambari:ambari-metrics-common:jar:1.0.0-01 (compile), javax.servlet:servlet-api:jar:2.5 (compile), org.apache.hadoop:hadoop-common:jar:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (provided), org.apache.hadoop:hadoop-annotations:jar:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (compile), org.mockito:mockito-all:jar:1.9.5 (test), org.apache.hadoop:hadoop-common:jar:tests:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (test), com.google.inject.extensions:guice-servlet:jar:3.0 (compile), com.google.protobuf:protobuf-java:jar:2.5.0 (compile), junit:junit:jar:4.10 (test), com.google.inject:guice:jar:3.0 (compile), com.sun.jersey.jersey-test-framework:jersey-test-framework-core:jar:1.11 (test), com.sun.jersey:jersey-json:jar:1.11 (compile), com.sun.jersey.contribs:jersey-guice:jar:1.11 (compile), com.sun.jersey:jersey-server:jar:1.11 (compile), org.apache.hadoop:hadoop-yarn-common:jar:tests:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (test), org.apache.hadoop:hadoop-yarn-common:jar:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (compile), org.apache.hadoop:hadoop-yarn-api:jar:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (compile), javax.xml.bind:jaxb-api:jar:2.2.2 (compile), org.codehaus.jettison:jettison:jar:1.1 (compile), com.sun.jersey:jersey-core:jar:1.11 (compile), com.sun.jersey:jersey-client:jar:1.11 (compile), com.google.guava:guava:jar:14.0.1 (compile), commons-logging:commons-logging:jar:1.1.1 (compile), org.apache.hadoop:hadoop-yarn-server-common:jar:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) (compile), com.sun.jersey.jersey-test-framework:jersey-test-framework-grizzly2:jar:1.11 (test), org.codehaus.jackson:jackson-core-asl:jar:1.9.9 (compile), org.slf4j:slf4j-api:jar:1.7.2 (compile), org.slf4j:slf4j-log4j12:jar:1.7.2 (compile), org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13 (compile), commons-collections:commons-collections:jar:3.2.1 (compile), org.fusesource.leveldbjni:leveldbjni-all:jar:1.8 (compile), org.assertj:assertj-core:jar:1.7.0 (test), org.easymock:easymock:jar:3.2 (test), org.apache.phoenix:phoenix-core:jar:tests:4.2.0.2.2.0.0-2041 (compile), org.apache.hbase:hbase-it:jar:tests:0.98.4.2.2.0.0-2041-hadoop2 (test), org.apache.hbase:hbase-testing-util:jar:0.98.4.2.2.0.0-2041-hadoop2 (test?), org.powermock:powermock-module-junit4:jar:1.4.9 (test), org.powermock:powermock-api-mockito:jar:1.4.9 (test), org.powermock:powermock-api-easymock:jar:1.4.9 (test), sqlline:sqlline:jar:1.1.2 (compile)]: No versions available for org.apache.hadoop:hadoop-common:jar:(2.6.0.2.2.0.0,2.6.0.2.2.1.0) within specified range -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ambari-metrics-timelineservice
please help.Thanks.siyu li



Mime
View raw message