You can either install java and eclipse in your system and then use the jar in webconsole and execute it or you can use the VM for which I have attached the document below.
Please follow these steps to run a mapreduce code in webconsole as shown below.
Step 1:
Import all these hadoop libraries in your eclipse.
https://drive.google.com/open?id=1oqVVeEqSCFYdlKj9Zgluanjb7Gpn0SVb
Step 2:
Write your map reduce code in your eclipse and export a jar file .
Step 3:
Now using your ftp option copy these files to your My Lab server.
- wc.jar(the jar that you created)
- wordcountproblem dataset
![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA0ODc0MTEyOSwiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.bAJi7Kxd64bU0MhvseW_OHMnGqQlYV_SIp5YEYd1kEg)
Step 3:
Open webconsole and fire ls command in it and find these files.
Step 4:
Copy that wordcountproblem file to hdfs with this command.
hadoop dfs -copyFromLocal wordcountproblem /user/edureka_334301
Step 5:
Now use the command shown below for execution of map reduce code.
![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA0ODc0MTEzNywiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.mR92YvDot93fTaHLfScM2k9AgfKwfmjdRR-TqlyDCuw)
Step 6:
And check the results using the command as shown below.
![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA0ODc0MTEzOCwiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.oGnGdlXTSagjSlrTOiSJ-HHjQIjGvijvDsk5EUvnDRs)