From b259229b5734c71727d671a4d73ec82db58269ad Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Fri, 11 May 2012 13:57:32 +0000 Subject: [PATCH] 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 --- .../hadoop/hbase/client/TestMetaMigrationRemovingHTD.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java b/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java index d1c15afd5a1..34e9956a373 100644 --- a/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java +++ b/src/test/java/org/apache/hadoop/hbase/client/TestMetaMigrationRemovingHTD.java @@ -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.