31. Check if the file is moved properly by displaying the file contents.
32. Now give the txt file store in HDFS as input to the MapReduce program.
( /output is the directory in which the output will be stored.)
hadoop jar /home/cloudera/WordCount.jar WordCount /input/Sample_data.txt /output
33.
34. Check the contents of the output directory. It will contain a file named “part-r-00000” which contains the
output of the program.