0% found this document useful (0 votes)
14 views2 pages

579 BDA Week-02

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

Roll No: 21R21A0579 Name: Ch.

Vamshi
Experiment No: 02 Experiment Name: Basic HDFS Commands
Date Of Experiment: 29-08-2024 Course Name: Big Data Analytics Lab

PROBLEM STATEMENT:- Hadoop HDFS put Command Description


Basic HDFS Commands. This hadoop basic command copies the file or
directory from the local file system to the
Version destination within the DFS.
Hadoop HDFS version Command Usage Learn Internals of HDFS Data Write Pipeline and
Version File write execution flow.
Hadoop HDFS version Command Example
hdfs dfs version copyFromLocal
Hadoop HDFS version Command Description Hadoop HDFS copyFromLocal Command Usage
This Hadoop command prints the Hadoop copyFromLocal <localSrc><dest>
version Hadoop HDFS copyFromLocal Command Example
hdfs dfs -copyFromLocal
ls /home/dataflair/Desktop/sample
Hadoop HDFS ls Command Usage /user/dataflair/dir1
ls <path> Hadoop HDFS copyFromLocal Command
Hadoop HDFS ls Command Example Description
hdfs dfs -ls /user/dataflair/dir1 This hadoop shell command is similar to put
Hadoop HDFS ls Commnad Description command, but the source is restricted to a local
This Hadoop HDFS ls command displays a list of file reference.
the contents of a directory specified by path Learn Internals of HDFS Data Read Operation,
provided by the user, showing the names, How Data flows in HDFS while reading the file.
permissions, owner, size and modification date
for each entry. get
Hadoop HDFS ls Command Example Hadoop HDFS get Command Usage
hdfs dfs -ls -R get [-crc] <src><localDest>
Hadoop HDFS ls Description Hadoop HDFS get Command Example
This Hadoop fs command behaves like -ls, but hdfs dfs -get /user/dataflair/dir2/sample
recursively displays entries in all subdirectories /home/dataflair/Desktop
of a path. Hadoop HDFS get Command Description
This HDFS fs command copies the file or directory
mkdir in HDFS identified by the source to the local file
Hadoop HDFS mkdir Command Usage system path identified by local destination.
mkdir <path>
Hadoop HDFS mkdir Command Example
hdfs dfs -mkdir /user/dataflair/dir1
Hadoop HDFS mkdir Command Description
This HDFS command takes path URI’s as an
argument and creates directories.Creates any
parent directories in path that are missing (e.g.,
mkdir -p in Linux).
Learn various features of Hadoop HDFS from this
HDFS features guide.

put
Hadoop HDFS put Command Usage
put <localSrc><dest>
Hadoop HDFS put Command Example
hdfs dfs -put /home/dataflair/Desktop/sample
/user/dataflair/dir1
Roll No: 21R21A0579 Name: Ch. Vamshi
Experiment No: 02 Experiment Name: Basic HDFS Commands
Date Of Experiment: 29-08-2024 Course Name: Big Data Analytics Lab

Outputs:

You might also like