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:
Zhihong Yu 2012-05-11 13:57:32 +00:00
parent 4bb18e6a92
commit b259229b57
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ public class TestMetaMigrationRemovingHTD {
FileSystem fs = FileSystem.get(conf);
// find where hbase will root itself, so we can copy filesystem there
Path hbaseRootDir = TEST_UTIL.getDefaultRootDirPath();
if (!fs.isDirectory(hbaseRootDir.getParent())) {
// mkdir at first
doFsCommand(shell,
new String [] {"-mkdir", hbaseRootDir.getParent().toString()});
}
doFsCommand(shell,
new String [] {"-put", untar.toURI().toString(), hbaseRootDir.toString()});
// See whats in minihdfs.