HBASE-7143 TestMetaMigrationRemovingHTD fails when used with Hadoop 0.23/2.x (Andrey Klochlov)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1408011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-11-11 14:35:22 +00:00
parent 55163522e6
commit dec4aea1f2
1 changed files with 1 additions and 2 deletions

View File

@ -105,8 +105,7 @@ public class TestMetaMigrationConvertingToPB {
Path hbaseRootDir = TEST_UTIL.getDefaultRootDirPath(); Path hbaseRootDir = TEST_UTIL.getDefaultRootDirPath();
if (!fs.isDirectory(hbaseRootDir.getParent())) { if (!fs.isDirectory(hbaseRootDir.getParent())) {
// mkdir at first // mkdir at first
doFsCommand(shell, fs.mkdirs(hbaseRootDir.getParent());
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()});