Professional Documents
Culture Documents
Hadoop Assignment 1
Hadoop Assignment 1
3: Store the file (sample.txt) on HDFS PATH (/hd_siddhant) using (put or copyFromLocal).
Exercise 2: CREATING DIRECTORY ON LOCAL SYSTEM AND GET THE DATA FROM HDFS PATH
1: Create a Directory on local system.
2: Get the data (file eg: sample.txt) from Hdfs location and store in local directory (Example) using (get,
copyToLocal).
Exercise 3: (moving the data form local file system to HDFS PATH (cntrl+x --> cntrl+v))
3: Move the data from Local System (file: temp.txt) to HDFS Path (Dir: /hd_dir_mv)
3: copy the file from one directory to another ON HDFS (cntrl+c to cntrl+v)
4: output
3: move the file from one directory to another ON HDFS (cntrl+x to cntrl+v)
4: output
Exercise:6 (setting the replication factor explicitly for file ON HDFS PATH)
3: In our system default replication factor is 1, but explicitly to increase the replication factor of a file to 2