hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-5779) Master goes to infinite loop if AccessControlException occurs while setting cluster id during initialization
Date Sat, 11 Apr 2015 01:26:16 GMT

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

Andrew Purtell resolved HBASE-5779.
-----------------------------------
    Resolution: Cannot Reproduce

Reopen if still an issue with current code

> Master goes to infinite loop if AccessControlException occurs while setting cluster id
during initialization 
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-5779
>                 URL: https://issues.apache.org/jira/browse/HBASE-5779
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.1
>            Reporter: Shrijeet Paliwal
>
> Steps to reproduce: 
> - change permission of /hbase to a user other than one running hbase
> - delete hbase.id if already exists
> - start master, it will try to create cluster ID file in /hbase and fail while doing
so with org.apache.hadoop.security.AccessControlException
> From this point it will go to infinite loop. 
> Reason: org.apache.hadoop.hbase.util.FSUtils.setClusterId  has a wait > 0 and no control
over retries when called during master initialization. 
> Quoting : checkRootDir in MasterFileSystem
> {noformat}
> // Make sure cluster ID exists
>     if (!FSUtils.checkClusterIdExists(fs, rd, c.getInt(
>         HConstants.THREAD_WAKE_FREQUENCY, 10 * 1000))) {
>       FSUtils.setClusterId(fs, rd, UUID.randomUUID().toString(), c.getInt(
>           HConstants.THREAD_WAKE_FREQUENCY, 10 * 1000));
>     }
> {noformat}



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

Mime
View raw message