Thanks, Luke! But I'm still having problems.

After importing all projects into Eclipse, I got 1007 erros. The first one:

"Project 'MapReduceTools' is missing required library: 'lib/hadoop-core.jar'"

Then, many of the following kind:

"Unbound classpath variable: 
'M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar'
in project 'hadoop-mapreduce-client-app'"

Is there any place where I can have a complete step list about how to develop 
Hadoop?
The wiki seems no to be up-to-date.
Can anyone help?

Thanks in advance!
Alexandre.

On Tue, 4 Oct 2011 03:05:02 -0700, Luke Lu wrote
> Try to do a mvn install -DskipTests -P-cbuild before mvn eclipse:eclipse..
> 
> On Mon, Oct 3, 2011 at 10:08 PM, Alexandre de Assis Bento Lima
> <as...@cos.ufrj.br> wrote:
> > Hi,
> >
> > I'm following the steps suggested by the wiki page:
> >
> > EclipseEnvironment - Hadoop Wiki 
> > (http://wiki.apache.org/hadoop/EclipseEnvironment)
> >
> > in order to have an Eclipse project for Hadoop. I'm exactly trying to 
> > execute the
> > following command:
> >
> > mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
> >
> > But I always get the following error:
> >
> > [INFO] 
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO] 
> > ------------------------------------------------------------------------
> > [INFO] Total time: 12.657s
> > [INFO] Finished at: Tue Oct 04 02:04:11 BRT 2011
> > [INFO] Final Memory: 31M/282M
> > [INFO] 
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project hadoop-yarn-common: Could not 
> > resolve
> > dependencies for project 
> > org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:
> > Failed to collect dependencies for [log4j:log4j:jar:1.2.12 (compile),
> > org.apache.hadoop:hadoop-yarn-api:jar:0.24.0-SNAPSHOT (compile),
> > org.apache.avro:avro:jar:1.5.3 (compile), 
> > com.google.protobuf:protobuf-java:jar:2.4.0a
> > (compile), org.apache.hadoop:hadoop-common:jar:0.24.0-SNAPSHOT (compile),
> > org.apache.hadoop:hadoop-annotations:jar:0.24.0-SNAPSHOT (compile),
> > junit:junit:jar:4.8.2 (compile), org.mockito:mockito-all:jar:1.8.5 (test),
> > org.apache.hadoop:hadoop-common:jar:tests:0.24.0-SNAPSHOT (test),
> > org.apache.hadoop:hadoop-hdfs:jar:0.24.0-SNAPSHOT (runtime),
> > com.google.inject.extensions:guice-servlet:jar:2.0 (compile),
> > org.jboss.netty:netty:jar:3.2.3.Final (compile), 
> > org.slf4j:slf4j-api:jar:1.6.1
> > (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile)]: Failed to read 
> > artifact
> > descriptor for org.apache.hadoop:hadoop-yarn-api:jar:0.24.0-SNAPSHOT: 
> > Failure to find
> > org.apache.hadoop:hadoop-yarn:pom:${yarn.version} in
> > http://repository.jboss.org/nexus/content/groups/public/ was cached in the 
> > local
> > repository, resolution will not be reattempted until the update interval of
> > repository.jboss.org has elapsed or updates are forced -> [Help 1]
> >
> > Then, I try
> >
> > mvn -X eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
> >
> > and get
> >
> > [DEBUG] 
> > =======================================================================
> > [INFO]
> > [INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @ 
> > hadoop-yarn-common >>>
> > [DEBUG] Could not find metadata
> > org.apache.hadoop:hadoop-yarn-api:0.24.0-SNAPSHOT/maven-metadata.xml in 
> > local
> > (/home/assis/.m2/repository)
> > [DEBUG] Using connector WagonRepositoryConnector with priority 0 for
> > http://repository.apache.org/snapshots
> > Downloading:
> >
http://repository.apache.org/snapshots/org/apache/hadoop/hadoop-yarn-api/0.24.0-SNAPSHOT/maven-metadata.xml
> > Downloaded:
> >
http://repository.apache.org/snapshots/org/apache/hadoop/hadoop-yarn-api/0.24.0-SNAPSHOT/maven-metadata.xml
> > (785 B at 1.0 KB/sec)
> > [DEBUG] Reading resolution tracking file
> >
/home/assis/.m2/repository/org/apache/hadoop/hadoop-yarn-api/0.24.0-SNAPSHOT/resolver-status.properties
> > [DEBUG] Writing resolution tracking file
> >
/home/assis/.m2/repository/org/apache/hadoop/hadoop-yarn-api/0.24.0-SNAPSHOT/resolver-status.properties
> > [INFO] 
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache Hadoop Project POM ......................... SUCCESS [1.626s]
> > [INFO] Apache Hadoop Annotations ......................... SUCCESS [0.289s]
> > [INFO] Apache Hadoop Project Dist POM .................... SUCCESS [0.255s]
> > [INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.207s]
> > [INFO] Apache Hadoop Auth ................................ SUCCESS [0.557s]
> > [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [0.384s]
> > [INFO] Apache Hadoop Common .............................. SUCCESS [1.912s]
> > [INFO] Apache Hadoop Common Project ...................... SUCCESS [0.083s]
> > [INFO] Apache Hadoop HDFS ................................ SUCCESS [3.209s]
> > [INFO] Apache Hadoop HDFS Project ........................ SUCCESS [0.160s]
> > [INFO] hadoop-yarn-api ................................... SUCCESS [2.273s]
> > [INFO] hadoop-yarn-common ................................ FAILURE [0.926s]
> >
> > I check the local repository and realize that there's no maven-metadata.xml 
> > file there.
> > So, I download it myself, try again, and the same things happen.
> > Can anyone help me, please? I'm using Ubuntu 11.04 with jdk1.7.0, maven 
> > 3.0.3 and
> > protobuf 2.4.1.
> >
> > Thanks in advance!
> >
> > Alexandre A. B. Lima.
> > -----------------------------------------------
> > COPPE / Computer Science
> > Federal University of Rio de Janeiro
> > Rio de Janeiro, Brazil.
> > +55-21-2562-8690
> >
> >


Alexandre A. B. Lima.
-----------------------------------------------
COPPE / Computer Science
Federal University of Rio de Janeiro
Rio de Janeiro, Brazil.
+55-21-2562-8690

Reply via email to