[ 
https://issues.apache.org/jira/browse/HDFS-8135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551916#comment-14551916
 ] 

zhangduo commented on HDFS-8135:
--------------------------------

HBase uses DistributedFileSystem.setSafeMode to check whether an hdfs cluster 
is in safe mode. This method needs {{HdfsConstants.SafeModeAction}}.

I found that there is a {{HdfsUtils.isHealthy}}, we could try to make use of 
this method instead of depending on hdfs private classes.

Thanks.

> Remove the deprecated FSConstants class
> ---------------------------------------
>
>                 Key: HDFS-8135
>                 URL: https://issues.apache.org/jira/browse/HDFS-8135
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>            Assignee: Li Lu
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8135-041315.patch
>
>
> The {{FSConstants}} class has been marked as deprecated since 0.23. There is 
> no uses of this class in the current code base and it can be removed.



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

Reply via email to