[ 
https://issues.apache.org/jira/browse/HDFS-11417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Surendra Singh Lilhore updated HDFS-11417:
------------------------------------------
    Attachment: HDFS-11417.001.patch

Attached initial patch, Please review..
Added new command 
{noformat}
./hdfs dfsadmin -getStorageReport 127.0.0.1:9867
Active Storage(3):

Directory: /storage1/dfs/dn
StorageType: SSD
Capacity Used: 32768(32 KB)
Capacity Left: 428230676480(398.82 GB)
Capacity Reserved: 0(0 B)
Reserved Space for Replicas: 0(0 B)
Blocks: 0

Directory: /storage2/dfs/dn
StorageType: ARCHIVE
Capacity Used: 32768(32 KB)
Capacity Left: 428230676480(398.82 GB)
Capacity Reserved: 0(0 B)
Reserved Space for Replicas: 0(0 B)
Blocks: 0

Directory: /storage3/dfs/dn
StorageType: DISK
Capacity Used: 131072(128 KB)
Capacity Left: 428230676480(398.82 GB)
Capacity Reserved: 0(0 B)
Reserved Space for Replicas: 0(0 B)
Blocks: 6
{noformat}


> Add datanode admin command to get the storage info.
> ---------------------------------------------------
>
>                 Key: HDFS-11417
>                 URL: https://issues.apache.org/jira/browse/HDFS-11417
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>    Affects Versions: 2.7.3
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>         Attachments: HDFS-11417.001.patch
>
>
> It is good to add one admin command for datanode to get the data directory 
> info like storage type, directory path, number of block, capacity, used 
> space. This will be help full in large cluster where DN has multiple data 
> directory configured. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to