Sunday, November 8, 2015

Uploading data on Node

After successfully hadoop is started ,we can start uploading data on node .After data is uploaded it is located on hadoop distributed file system .For example data is uploaded in folder In then that data exists in server with folder name In.You can view that location of data from browser.


Suppose we have uploaded data on folder In .In folder has 4 .txt files .Similarly we can create another folder with name disease folder and there can be many folders
/user/abishkar/In
/user/abishkar/Disease
/user/abishkar/Patient
/user/abishkar/Diagnosis
/user/abishkar/Case1
/user/abishkar/Case2

There can be many folders and files
Now Now we write map reduce program and extract information from thoses files

command

bin/hadoop fs -mkdir In1

 bin/hadoop fs -put a.txt In1

it upload data on data node from the location in In1 folder

No comments:

Post a Comment