You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2012/05/11 15:57:32 UTC
svn commit: r1337165 -
/hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java
Author: tedyu
Date: Fri May 11 13:57:32 2012
New Revision: 1337165
URL: http://svn.apache.org/viewvc?rev=1337165&view=rev
Log:
HBASE-5985 TestMetaMigrationRemovingHTD failed with HADOOP 2.0.0 (Jimmy Xiang)
Modified:
hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java
Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java?rev=1337165&r1=1337164&r2=1337165&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java Fri May 11 13:57:32 2012
@@ -77,6 +77,11 @@ public class TestMetaMigrationRemovingHT
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.