Lab 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

BDM1043 Lab1 HDFS Commands

Maricris Q. Resma

BDM 1043 - Big Data Fundamentals 02 (DSMM Group 2)

Lambton College Mississauga

Jagmohan Dutta

October 21, 2022


1. Print the current working directory

2. Print the Hadoop version

3. List the contents of the root directory in HDFS

4. Create a new directory (Lambton)

5. Add a text file (lambton.txt) from the local directory to HDFS


6. Delete a file (lambton.txt) from HDFS.
7. Add (lambton.txt) file from the local directory to HDFS using a copy from the local utility

8. Get (lambton.txt) file from the HDFS directory to the local directory using the copyTolocal
utility

9. Get (lambton.txt) file from the HDFS directory to the local directory using the get utility
10. Copy any 2 files from one to other directories present in HDFS using the cp command in
HDFS

You might also like