Daffodil International University

Faculty of Science and Information Technology => Software Engineering => Topic started by: allayear on April 22, 2017, 10:08:29 AM

Title: how to run mapreduce program in Hadoop
Post by: allayear on April 22, 2017, 10:08:29 AM
How to run MapReduce
---------------------------------


Step1: Put the text file on Hadoop HDFS(here,"/home/hadoop1/wordcountFile /"This is text file name with directory).
$hadoop dfs -put /home/hadoop1/wordcountFile /

Step2: give location to hadoop (jar file, packagenaem.ClassName /file Name Output Folder)
$hadoop jar /home/hadoop1/DemoMapReduce.jar PackageDemo.WordCount /wordcountFile1 OutPutFile

setp3: view the output folder
$hadoop fs -ls OutPutFile1

step4: view the Result
$hadoop fs -cat OutPutFile1/part-r-00000