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

Surendra Singh Lilhore updated HDFS-9355:
-----------------------------------------
    Status: Patch Available  (was: Open)

Attached initial patch.

In this patch I have added two API in {{DistributedFileSystem.java}}. 
{code}
public DatanodeStorageReport[] getDataNodeStorageStats(final DatanodeReportType 
type);

public DatanodeStorageReport[] getDataNodeStorageStats(final DatanodeReportType 
type, final StorageType storageType);
{code}

These API will give the storage status for datanodes. It will internally call 
the {{DFSClient.getDatanodeStorageReport()}} API which is added in HDFS-6739.

Please review


> Add client API to get Datanode list based on storage type
> ---------------------------------------------------------
>
>                 Key: HDFS-9355
>                 URL: https://issues.apache.org/jira/browse/HDFS-9355
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs-client
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>         Attachments: HDFS-9355.001.patch
>
>
> HDFS-2576 give option to hint namenode about favored nodes, but in 
> heterogeneous cluster this will not work out. Suppose client wants to write 
> his data in directory which have COLD policy, but he don't know which DN have 
> ARCHIVE storage, So he will not able to give favoredNodes list. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to