On 10/03/2011 06:39 AM, Tim Broberg wrote:

I am trying to build hadoop so I can understand it and perhaps make some 
moderate contributions.


Following the instructions here, http://wiki.apache.org/hadoop/HowToContribute, 
I am running the following commands:

  svn checkout http://svn.apache.org/repos/asf/hadoop/common/trunk/ hadoop-trunk
  cd hadoop-trunk
  mvn clean package -Pdist -DskipTests -P-cbuild

...but I am getting errors similar to this guy: 
https://github.com/harrah/xsbt/issues/190.

Do I need to go hunting around to manually download this file? Is this normal?

Thanks,
     - Tim.

Complete Maven output:

mvn clean package -Pdist -DskipTests -P-cbuild
/usr/java/jre1.6.0_27
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Hadoop Project POM
[INFO]   Apache Hadoop Annotations
[INFO]   Apache Hadoop Assemblies
[INFO]   Apache Hadoop Project Dist POM
[INFO]   Apache Hadoop Auth
[INFO]   Apache Hadoop Auth Examples
[INFO]   Apache Hadoop Common
[INFO]   Apache Hadoop Common Project
[INFO]   Apache Hadoop HDFS
[INFO]   Apache Hadoop HDFS Project
[INFO]   hadoop-yarn
[INFO]   hadoop-yarn-api
[INFO]   hadoop-yarn-common
[INFO]   hadoop-yarn-server
[INFO]   hadoop-yarn-server-common
[INFO]   hadoop-yarn-server-nodemanager
[INFO]   hadoop-yarn-server-resourcemanager
[INFO]   hadoop-yarn-server-tests
[INFO]   hadoop-yarn-applications
[INFO]   hadoop-yarn-applications-distributedshell
[INFO]   hadoop-yarn-site
[INFO]   hadoop-mapreduce
[INFO]   hadoop-mapreduce-client
[INFO]   hadoop-mapreduce-client-core
[INFO]   hadoop-mapreduce-client-common
[INFO]   hadoop-mapreduce-client-shuffle
[INFO]   hadoop-mapreduce-client-app
[INFO]   hadoop-mapreduce-client-hs
[INFO]   hadoop-mapreduce-client-jobclient
[INFO]   Apache Hadoop Main
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Project POM
[INFO]    task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) jdk.tools:jdk.tools:jar:1.6
   Try downloading the file manually from the project website.
   Then, install it using the command:
       mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools 
-Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file
   Alternatively, if you host your own repository you can deploy the file there:
       mvn deploy:deploy-file -DgroupId=jdk.tools -DartifactId=jdk.tools 
-Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
-DrepositoryId=[id]
   Path to dependency:
         1) org.apache.hadoop:hadoop-project:pom:0.24.0-SNAPSHOT
         2) jdk.tools:jdk.tools:jar:1.6
----------
1 required artifact is missing.
for artifact:
   org.apache.hadoop:hadoop-project:pom:0.24.0-SNAPSHOT
from the specified remote repositories:
   apache.snapshots.https 
(https://repository.apache.org/content/repositories/snapshots),
   central (http://repo1.maven.org/maven2),
   __jpp_pom_repo__ (file:///usr/share/maven-poms),
   __jpp_repo2__ (file:///usr/share/maven/repository),
   __jpp_repo__ (file:///usr/share/maven2/repository)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Sun Oct 02 13:11:50 PDT 2011
[INFO] Final Memory: 9M/21M
[INFO] ------------------------------------------------------------------------
[tbroberg@f15 hadoop-trunk]$
What is c-build for ?

Reply via email to