Question

I am trying to learn hadoop. It installed fine on my system. Its located at /usr/local/hadoop and I'm using jdk1.7.0_45 java.

Whenever I try to run the famous wordcount example, it produces the following output:

/usr/local/hadoop $ bin/hadoop jar hadoop-examples-1.0.4.jar wordcount /user/hduser/gutenberg /user/hduser/gutenberg-output
Warning: $HADOOP_HOME is deprecated.

13/10/31 20:03:24 INFO input.FileInputFormat: Total input paths to process : 3
13/10/31 20:03:24 INFO util.NativeCodeLoader: Loaded the native-hadoop library
13/10/31 20:03:24 WARN snappy.LoadSnappy: Snappy native library not loaded
13/10/31 20:03:24 INFO mapred.JobClient: Running job: job_201310311657_0006
13/10/31 20:03:25 INFO mapred.JobClient:  map 0% reduce 0%
13/10/31 20:03:25 INFO mapred.JobClient: Job complete: job_201310311657_0006
13/10/31 20:03:25 INFO mapred.JobClient: Counters: 0

Any ideas what I'm doing wrong? There's nothing desired in the output folder as it should.

Was it helpful?

Solution

You need to open jobtracker(http://localhost:50030/jobtracker.jsp) -> completed job : job_201310311657_0006 -> It will get you to the job details. Click on Failed Map attempts . (number under Failed Map)-> click on taskId -> Logs there you be be able to see the full stack-trace .

Figure out it out .

The job launched the map task are given, so there may be some prob with the i/p file.(guess)

Paste the Log of job for more help .

OTHER TIPS

replace the "HADOOP_HOME" variable with "HADOOP_PREFIX" variable in your .bashrc file

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top