HBASE-5985 TestMetaMigrationRemovingHTD failed with HADOOP 2.0.0 (Jimmy Xiang)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1337165 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4bb18e6a92
commit
b259229b57
|
@ -77,6 +77,11 @@ public class TestMetaMigrationRemovingHTD {
|
||||||
FileSystem fs = FileSystem.get(conf);
|
FileSystem fs = FileSystem.get(conf);
|
||||||
// find where hbase will root itself, so we can copy filesystem there
|
// find where hbase will root itself, so we can copy filesystem there
|
||||||
Path hbaseRootDir = TEST_UTIL.getDefaultRootDirPath();
|
Path hbaseRootDir = TEST_UTIL.getDefaultRootDirPath();
|
||||||
|
if (!fs.isDirectory(hbaseRootDir.getParent())) {
|
||||||
|
// mkdir at first
|
||||||
|
doFsCommand(shell,
|
||||||
|
new String [] {"-mkdir", hbaseRootDir.getParent().toString()});
|
||||||
|
}
|
||||||
doFsCommand(shell,
|
doFsCommand(shell,
|
||||||
new String [] {"-put", untar.toURI().toString(), hbaseRootDir.toString()});
|
new String [] {"-put", untar.toURI().toString(), hbaseRootDir.toString()});
|
||||||
// See whats in minihdfs.
|
// See whats in minihdfs.
|
||||||
|
|
Loading…
Reference in New Issue