[ https://issues.apache.org/jira/browse/HBASE-6305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405914#comment-13405914 ]
Jonathan Hsieh commented on HBASE-6305: --------------------------------------- Definitely has something to do with the attempt to auto set fs.defaultFS. For 0.94, I got it passing by removing these lines (note that fs.defaultFS == hbase.rootdir doesn't really make sense I believe): {code} diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ index bad1d12..c0036c4 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -1071,12 +1071,6 @@ public class HRegionServer implements ClientProtocol, // Save it in a file, this will allow to see if we crash ZNodeClearer.writeMyEphemeralNodeOnDisk(getMyEphemeralNodePath()); - // Master sent us hbase.rootdir to use. Should be fully qualified - // path with file system specification included. Set 'fs.defaultFS' - // to match the filesystem on hbase.rootdir else underlying hadoop hdfs - // accessors will be going against wrong filesystem (unless all is set - // to defaults). - this.conf.set("fs.defaultFS", this.conf.get("hbase.rootdir")); // Get fs instance used by this RS this.fs = new HFileSystem(this.conf, this.useHBaseChecksum); this.rootDir = new Path(this.conf.get(HConstants.HBASE_DIR)); {code} Unfortunately, this doesn't fix trunk -- it's error looks directly related to HBASE-6306. > TestLocalHBaseCluster hangs with hadoop 2.0/0.23 builds. > -------------------------------------------------------- > > Key: HBASE-6305 > URL: https://issues.apache.org/jira/browse/HBASE-6305 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 0.96.0, 0.94.1 > Reporter: Jonathan Hsieh > Assignee: Jonathan Hsieh > > trunk: mvn clean test -Dhadoop.profile=2.0 -Dtest=TestLocalHBaseCluster > 0.94: mvn clean test -Dhadoop.profile=23 -Dtest=TestLocalHBaseCluster > {code} > testLocalHBaseCluster(org.apache.hadoop.hbase.TestLocalHBaseCluster) Time > elapsed: 0.022 sec <<< ERROR! > java.lang.RuntimeException: Master not initialized after 200 seconds > at > org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:208) > at > org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:424) > at > org.apache.hadoop.hbase.TestLocalHBaseCluster.testLocalHBaseCluster(TestLocalHBaseCluster.java:66) > ... > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira