What is the difference between hadoop fs, hadoop dfs and hdfs dfs commands? - Big Data In Real World

What is the difference between hadoop fs, hadoop dfs and hdfs dfs commands?

How to convert List to a JavaRDD in Spark?
December 23, 2020
How to purge or delete messages in a Kafka topic?
December 28, 2020
How to convert List to a JavaRDD in Spark?
December 23, 2020
How to purge or delete messages in a Kafka topic?
December 28, 2020

If you are trying to access HDFS, you might have come across the below three types of commands. In this post we will see the difference between the 3 of them.

  1. hadoop fs {args}
  2. hadoop dfs {args}
  3. hdfs dfs {args}

hadoop fs {args}

In the above command, fs refers to a generic file system and can point to your local file system, HDFS and other file systems like S3, SFTP etc.

hadoop dfs {args}

hadoop dfs commands are used when you are working with HDFS and not with other file systems. Note that this command is deprecated and when you use this command it is delegated to hdfs dfs command.

hdfs dfs {args}

As the command itself suggests, the command is specific to HDFS and use this when you are working with hdfs.

In summary, hadoop fs is versatile and can work with many file systems including HDFS. hdfs dfs works with HDFS and use it if your only need is to access HDFS.

Big Data In Real World
Big Data In Real World
We are a group of Big Data engineers who are passionate about Big Data and related Big Data technologies. We have designed, developed, deployed and maintained Big Data applications ranging from batch to real time streaming big data platforms. We have seen a wide range of real world big data problems, implemented some innovative and complex (or simple, depending on how you look at it) solutions.

Comments are closed.

What is the difference between hadoop fs, hadoop dfs and hdfs dfs commands?
This website uses cookies to improve your experience. By using this website you agree to our Data Protection Policy.

Hadoop In Real World is now Big Data In Real World!

X