how to run mapreduce program in Hadoop

Author Topic: how to run mapreduce program in Hadoop  (Read 1180 times)

Offline allayear

  • Newbie
  • *
  • Posts: 8
  • Test
    • View Profile
how to run mapreduce program in Hadoop
« 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


Dr.Shaikh Muhammad Allayear
Associate Professor
Dept. of SWE
Daffodil International University