[
https://issues.apache.org/jira/browse/HDFS-11417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972330#comment-15972330
]
Akira Ajisaka commented on HDFS-11417:
--------------------------------------
{code:title=DataNode.java}
@SuppressWarnings("unchecked")
Map<String, Object> volumeInfo = (Map<String, Object>) volume.getValue();
{code}
This type casting can fail if the existing implementation in FsDatasetImpl.java
has been changed. Can we change {{FsDatasetSpi#getVolumeInfoMap()}} to return
{{Map<String, Map<String, Object>>}} to avoid relying on the type casting? What
do you think, [~vinayrpet] and [~surendrasingh]?
> 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, HDFS-11417.002.patch,
> HDFS-11417.003.patch, HDFS-11417.004.patch, HDFS-11417.005.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: [email protected]
For additional commands, e-mail: [email protected]