miPlodder / Hadoop-Basic-Codes

This repo contains basic Hadoop Codes written in Java.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hadoop-Basic-Codes

This repo contains basic Hadoop Codes written in Java.

Usage

Run commands mentioned below in terminal,

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

About

This repo contains basic Hadoop Codes written in Java.


Languages

Language:Java 100.0%