When to use Hadoop FS, Hadoop DFS, and HDFs DFS commands

Source: Internet
Author: User
Tags hdfs dfs hadoop fs

Hadoop FS: Use the widest range of surfaces to manipulate any file system.

Hadoop DFS and HDFs DFS: can only operate on HDFs file system-related (including operations with local FS), which is already deprecated, typically using the latter.

The following reference is from StackOverflow

Following is the three commands which appears same but has minute differences

    1. Hadoop fs {args}
    2. Hadoop dfs {args}
    3. HDFs Dfs {args}

      hadoop fs <args>

FS relates to a generic the file system which can point to any of the file systems like local, HDFS etc. So the can is used when you is dealing with different file systems such as Local FS, Hftp FS, S3 FS, and others

  hadoop dfs <args>

DFS is very specific to HDFS. Would work for operation relates to HDFS. This have been deprecated and we should use HDFs DFS instead.

  hdfs   dfs <args>

Same as 2nd i.e would work for all the operations related to HDFS and is the recommended command instead of Hadoop DFS

Below is the list categorized as HDFS commands.

  **#hdfs commands**  namenode|secondarynamenode|datanode|dfs|dfsadmin|fsck|balancer|fetchdt|oiv|dfsgroups

So even if you use Hadoop DFS, it would look locate HDFs and delegate that command to HDFs DFS

When to use Hadoop FS, Hadoop DFS, and HDFs DFS commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.