How to execute a MapReduce program (WordCount.java) in...

13
How to execute a MapReduce program (WordCount.java) in Eclipse:

Transcript of How to execute a MapReduce program (WordCount.java) in...

How to execute a MapReduce program (WordCount.java) in Eclipse:

As you can see, it cannot run at the first beginning. There are three problems: (1) Could not find or load

main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster. Please check whether your

etc/Hadoop/mapred-site.xml contains the below configuration. This is how I fixed the problem.

(2) Container is running beyond memory limits. The following post is helpful.

http://stackoverflow.com/questions/21005643/container-is-running-beyond-memory-limits

This is how I fixed the problem.

(3) Output folder already exists. I need to delete it.

I run a second MapReduce program (MaxTempreture.java) in Eclipse: