This repo contains basic Hadoop Codes written in Java.
Run commands mentioned below in terminal,
- Start Hadoop
>> sudo systemctl start sshd
>> start-dfs.sh
>> start-yarn.sh
- Execute below command to see the working nodes in the system
>> jps
- Make new directory for the every hadoop program
>> hdfs dfs -mkdir /wordCount
- Now, add input file into the directory made above
>> hdfs dfs -put /home/vitchennai/Desktop/input.txt /wordCount/input.txt
- Finally, run the hadoop program by entering the command mentioned below
>> hadoop jar Desktop/wordCount.jar Driver /wordCount/input.txt /wordCount/output