Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> Hadoop on Eclipse


Copy link to this message
-
Re: Hadoop on Eclipse
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
<[EMAIL PROTECTED]> 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]
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB