Pages

Saturday 8 May 2021

MapReduce Program Using wordcount in Hadoop - Traditional Method

Hadoop commands:

1. create a directory mapin and mapout

 
2.under mapin directory create an input file by using the command touchz and then append a text as shown below using another command  appendToFile

The content of the input file is 
welcome to hadoop 
class hadoop is
good hadoop is 
bad


3. identify the mapreduce folder using the following shown hadoop commands


4.use the following command to count the map percentage and reduce percentage of the wordcount to the given input.txt file which is located in mapin/in.txt

 
5.Now we can see the result of the given input file using the following hadoop commands

No comments:

Post a Comment

Friends-of-friends-Map Reduce program

Program to illustrate FOF Map Reduce: import java.io.IOException; import java.util.*; import org.apache.hadoop.conf.Configuration; import or...