0

I can't compile Hadoop MapReduce on Eclipse. Can anyone help me?

Usama Abdulrehman
  • 1,041
  • 3
  • 11
  • 21
pm3310
  • 119
  • 1
  • 2
  • 9
  • Which version of Hadoop and how are you building it? – Praveen Sripati Jan 14 '12 at 02:12
  • I use version 0.21.0. I put in the Build Path->Configure Build Path->Builders the following build.xml files: 1)common/build.xml 2)hdfs/build.xml and 3)mapred/build.xml Thanks! – pm3310 Jan 14 '12 at 14:17
  • Define "can't compile". Just saying something doesn't work isn't helpful. – Dave Newton Jan 14 '12 at 14:20
  • I get this error:[ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: org.apache.hadoop#hadoop-common;0.21.0: not found [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: – pm3310 Jan 14 '12 at 15:42

1 Answers1

0

Your error log indicates a project dependency issue. Have you tried the steps on Hadoop wiki, especially below commands which generates eclipse .project and .classpath files for you?

$ mvn install -DskipTests
$ mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true

More info on http://wiki.apache.org/hadoop/HowToContribute and http://wiki.apache.org/hadoop/EclipseEnvironment.

michaelliu
  • 1,667
  • 2
  • 13
  • 13