hdfs dfs vs hadoop fs

Most people used to think that the shell commands hdfs dfs and hadoop fs were interchangeable. They list the directories’ contents in question. But there is a distinction between them.

hadoop fs <args>
The generic file system abbreviation fs is used to refer to any file system, including local file systems, HDFS, WebHDFS, S3 FS, etc.

hdfs dfs <args>
It is particular to HDFS and refers to the Distributed File System. It can be used to carry out HDFS operations.

Happy learning!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s