1-844-696-6465 (US)        +91 77600 44484        help@dezyre.com

How do I get the sample word count program to compile



0
The Eclipse IDE is not recognizing the hadoop classes such as map, reduce, etc.

Thank you.

5 Answer(s)


1

please follow the video on Module 3, it should work,
You need to create a folder called Lib, copy the jar, then add the path to the jar under properties , add the java build path and add the jar.

0

Do I need hadoop classes on my Windows 7 system? The IDE is showing an error on all the hadoop classes, so I cannot compile my example.

0

The hadoop jar is provided in the one of the files.
On windows X you have to go tp Project > Properties > Java Build Path > Libraries > Add External Jars

0

hi Raymond,

In Eclipse you have to add the all the jars that are from hadoop.mapred.* packages. Please right click on the project -> properties ->Java Build path -> Libraries Tab -> Add external jars and add the following

/usr/lib/hadoop - add hadoop-annotations.jar,hadoop-auth.jar,hadoop-common.jar
/usr/lib/hadoop/client - Add all jars
/usr/lib/hadoop/lib - Add all jars.

Once these jars are added, Eclipse will recognize the MapReduce programs

Thanks

0

Thank you for your help. Where to I get the hadoop jar files?

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password