HBASE-2075 Master requires HDFS superuser privileges due to waitOnSafeMode
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@894525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
42411929ff
commit
6802181855
|
@ -141,6 +141,7 @@ Release 0.21.0 - Unreleased
|
|||
at the same time
|
||||
HBASE-2026 NPE in StoreScanner on compaction
|
||||
HBASE-2072 fs.automatic.close isn't passed to FileSystem
|
||||
HBASE-2075 Master requires HDFS superuser privileges due to waitOnSafeMode
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1760 Cleanup TODOs in HTable
|
||||
|
|
|
@ -251,6 +251,7 @@ public class FSUtils {
|
|||
// Are there any data nodes up yet?
|
||||
// Currently the safe mode check falls through if the namenode is up but no
|
||||
// datanodes have reported in yet.
|
||||
try {
|
||||
while (dfs.getDataNodeStats().length == 0) {
|
||||
LOG.info("Waiting for dfs to come up...");
|
||||
try {
|
||||
|
@ -259,6 +260,10 @@ public class FSUtils {
|
|||
//continue
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
// getDataNodeStats can fail if superuser privilege is required to run
|
||||
// the datanode report, just ignore it
|
||||
}
|
||||
// Make sure dfs is not in safe mode
|
||||
while (dfs.setSafeMode(FSConstants.SafeModeAction.SAFEMODE_GET)) {
|
||||
LOG.info("Waiting for dfs to exit safe mode...");
|
||||
|
|
Loading…
Reference in New Issue