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

zhangduo commented on HBASE-13716:
----------------------------------

There are two FSConstants...
One is {{org.apache.hadoop.fs.FsConstants}}, and the other is 
{{org.apache.hadoop.hdfs.protocol.FSConstants}}.
The former one is marked as public and the latter one is what HDFS-8135 wants 
to remove.

There is only one place where we use 
{{org.apache.hadoop.hdfs.protocol.FSConstants}}. FSUtils calls 
{{DistributedFileSystem.setSafeMode}}. We could just replace it with 
{{HdfsConstants}}. But {{HdfsConstants}} is marked as private. Is there any 
other ways to check if an HDFS is in safe mode?

> Stop using Hadoop's FSConstants
> -------------------------------
>
>                 Key: HBASE-13716
>                 URL: https://issues.apache.org/jira/browse/HBASE-13716
>             Project: HBase
>          Issue Type: Task
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Blocker
>             Fix For: 2.0.0, 1.0.2, 1.2.0, 1.1.1
>
>
> the FSConstants class was removed in HDFS-8135 (currently slated for Hadoop 
> 2.8.0). I'm trying to have it reverted in branch-2, but we should migrate off 
> of it sooner rather htan later.



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

Reply via email to