Follow these steps:
Import all these hadoop libraries in your eclipse.
Write your map reduce code in your eclipse and export a jar file .
Now using your ftp option copy these files to your My Lab server.
- wc.jar(the jar that you created)
- wordcountproblem dataset
Open webconsole and fire ls command in it and find these files.
Copy that wordcountproblem file to hdfs with this command.
hadoop dfs -copyFromLocal wordcountproblem /user/edureka_334301
Now use the command shown below for execution of map reduce code.
hadoop jar wc.jar com.training.practice.wordcount /user/wordcountproblem /user/wcout
And check the results using the command as shown below.
hadoop dfs -cat /user/wcount/part-r-00000