1

Hadoop Tutorial - Eclipse Project errors

Hello Everyone:

I was reading the Hadoop Tutorial on the YDN and I created a Project in Eclipse as instructed at http://developer.yahoo.com/hadoop/tutorial/module3.html. However, even after adding the directory for the hadoop install directory to my project library I am getting errors which will not allow the project to run. The errors are saying the libraries are missing so I had to reselect all 18 jar files to stop the errors. Shouldn't Eclipse read those libraries automatically after selecting the install directory? After it loads all 18 libraries into the project, they display themselves outside of the main JRE system library.

Next I add the code for the WordCountMapper, WordCountReducer, and WordCount but the errors keep saying that the types cannot be resolved as shown below:

CODEBOX
Severity and Description	Path	Resource	Location	Creation Time	Id
FileInputPath cannot be resolved WordCount/src WordCount.java line 20 1311335056446 22329
FileOutputPath cannot be resolved WordCount/src WordCount.java line 21 1311335056447 22330
IntWritable cannot be resolved to a type WordCount/src WordCountReducer.java line 11 1311335056454 22334
IntWritable cannot be resolved to a type WordCount/src WordCountReducer.java line 11 1311335056454 22336
IntWritable cannot be resolved to a type WordCount/src WordCountReducer.java line 18 1311335056454 22340
IntWritable cannot be resolved to a type WordCount/src WordCountReducer.java line 18 1311335056454 22341
IntWritable cannot be resolved to a type WordCount/src WordCountReducer.java line 22 1311335056454 22342
Text cannot be resolved to a type WordCount/src WordCountReducer.java line 11 1311335056454 22333
Text cannot be resolved to a type WordCount/src WordCountReducer.java line 11 1311335056454 22335
Text cannot be resolved to a type WordCount/src WordCountReducer.java line 13 1311335056454 22337
The method setCombinerClass(Class<? extends Reducer>) in the type JobConf is not applicable for the arguments (Class<WordCountReducer>) WordCount/src WordCount.java line 28 1311335056447 22332
The method setReducerClass(Class<? extends Reducer>) in the type JobConf is not applicable for the arguments (Class<WordCountReducer>) WordCount/src WordCount.java line 27 1311335056447 22331
The type WordCountMapper must implement the inherited abstract method Mapper.map(Object, Object, OutputCollector, Reporter) WordCount/src WordCountMapper.java line 11 1311334858077 22307


I am not sure what to do. Any suggestions? Thank you.

by
1 Reply
  • Intellipaat launches new batches on Big Data Technologies Greetings from Intellipaat! We will start a new Online training batches in Mar'13 on BigData Technologies like . Hadoop (MapReduce/Hive/Pig/Zookeeper/Sqoop/MutiNode Cluster Setup etc...) . Hadoop Admin . Hbase . Cassandra . MongoDB
    . Mahout . Java with MapReduce . Scala . JBPM and Drools For more details write to us at sales@intellipaat.com. Visit us at www.intellipaat.com. Regards, Sales Team Intellipaat Mob- 91-9019368913

    0

Recent Posts

in General Discussion at YDN