[
https://issues.apache.org/jira/browse/HBASE-7814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13576850#comment-13576850
]
Ted Yu commented on HBASE-7814:
-------------------------------
I followed the same style in existing code:
{code}
private static boolean isInSafeMode(DistributedFileSystem dfs) throws
IOException {
boolean inSafeMode = false;
try {
Method m = DistributedFileSystem.class.getMethod("setSafeMode", new
Class<?> []{
org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction.class,
boolean.class});
inSafeMode = (Boolean) m.invoke(dfs,
org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction.SAFEMODE_GET, true);
} catch (Exception e) {
{code}
> Port HBASE-6963 'unable to run hbck on a secure cluster' to 0.94
> ----------------------------------------------------------------
>
> Key: HBASE-7814
> URL: https://issues.apache.org/jira/browse/HBASE-7814
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
> Fix For: 0.94.6
>
> Attachments: 7814-v2.txt, HBASE-7814-v0.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira