[
https://issues.apache.org/jira/browse/HBASE-6305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Himanshu Vashishtha updated HBASE-6305:
---------------------------------------
Attachment: HBASE-6305-v1.patch
The issue is we set hbase.rootdir to
"/home/XXXX/hbase/target/test-data/23a0e003-29c2-42cb-8fe9-4fe601834521/hbase.rootdir"
in TestLocalHBaseCluster.java. Then in HRS (as suggested by the above patch),
we set this value to fs.defaultFS too.
When doing a FileSystem.get(conf) in the subsequent codepath, it gets stuck in
an infinite recursion call in FileSystem.java where both the URI.getScheme()
and URI.getAuthority() is null.
It passes in hadoop1 as scheme is still "file".
Attached patch fixes this test for both hadoop1 and hadoop 2.
> 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: Sub-task
> Components: test
> Affects Versions: 0.92.2, 0.94.1
> Reporter: Jonathan Hsieh
> Assignee: Jonathan Hsieh
> Fix For: 0.92.3, 0.94.3
>
> Attachments: hbase-6305-94.patch, HBASE-6305-v1.patch
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira