hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r1399950 [27/27] - in /hadoop/common/branches/HDFS-2802/hadoop-hdfs-project: ./ hadoop-hdfs-httpfs/ hadoop-hdfs-httpfs/dev-support/ hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/ hadoop-hdfs-httpfs/src/main/java/org/apac...
Date Fri, 19 Oct 2012 02:28:07 GMT
Modified: hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml?rev=1399950&r1=1399949&r2=1399950&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml (original)
+++ hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml Fri Oct 19 02:25:55 2012
@@ -55,6 +55,7 @@
     <test> <!-- TESTED -->
       <description>ls: file using relative path</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command>
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -ls file1</command>
       </test-commands>
@@ -76,6 +77,7 @@
     <test> <!-- TESTED -->
       <description>ls: files using globbing</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command>
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -touchz file2</command>
         <command>-fs NAMENODE -touchz file3</command>
@@ -129,7 +131,7 @@
     <test> <!-- TESTED -->
       <description>ls: directory using relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
         <command>-fs NAMENODE -ls </command>
       </test-commands>
       <cleanup-commands>
@@ -150,10 +152,10 @@
     <test> <!-- TESTED -->
       <description>ls: directory using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir3</command>
-        <command>-fs NAMENODE -mkdir dir4</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir3</command>
+        <command>-fs NAMENODE -mkdir -p dir4</command>
         <command>-fs NAMENODE -ls </command>
       </test-commands>
       <cleanup-commands>
@@ -308,7 +310,7 @@
     <test> <!-- TESTED -->
       <description>ls: Non-URI input dir at Namenode's path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODE/user/dir1</command>
+        <command>-fs NAMENODE -mkdir -p NAMENODE/user/dir1</command>
         <command>-fs NAMENODE -ls hdfs:///user/</command>
       </test-commands>
       <cleanup-commands>
@@ -329,7 +331,7 @@
     <test> <!-- TESTED -->
       <description>ls: dir at hdfs:// path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs:///user/dir1</command>
+        <command>-fs NAMENODE -mkdir -p hdfs:///user/dir1</command>
         <command>-fs NAMENODE -ls hdfs:///user/</command>
       </test-commands>
       <cleanup-commands>
@@ -350,9 +352,9 @@
     <test> <!-- TESTED -->
       <description>ls: Non-URI input dir at Namenode's path using globing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODE/user/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODE/user/dir2</command>
-        <command>-fs NAMENODE -mkdir NAMENODE/user/dir3</command>
+        <command>-fs NAMENODE -mkdir -p NAMENODE/user/dir1</command>
+        <command>-fs NAMENODE -mkdir -p NAMENODE/user/dir2</command>
+        <command>-fs NAMENODE -mkdir -p NAMENODE/user/dir3</command>
         <command>-fs NAMENODE -ls hdfs:///user/</command>
       </test-commands>
       <cleanup-commands>
@@ -381,9 +383,9 @@
     <test> <!-- TESTED -->
       <description>ls: dir at hdfs:// path using globing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs:///user/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs:///user/dir2</command>
-        <command>-fs NAMENODE -mkdir hdfs:///user/dir3</command>
+        <command>-fs NAMENODE -mkdir -p hdfs:///user/dir1</command>
+        <command>-fs NAMENODE -mkdir -p hdfs:///user/dir2</command>
+        <command>-fs NAMENODE -mkdir -p hdfs:///user/dir3</command>
         <command>-fs NAMENODE -ls hdfs:///user/</command>
       </test-commands>
       <cleanup-commands>
@@ -533,13 +535,13 @@
     <test> <!-- TESTED -->
       <description>ls: files/directories using relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -621,13 +623,13 @@
     <test> <!-- TESTED -->
       <description>ls: files/directories using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -937,6 +939,7 @@
         <command>-fs NAMENODE -mkdir /dir0</command>
         <command>-fs NAMENODE -mkdir /dir0/\*</command>
         <command>-fs NAMENODE -touchz /dir0/\*/file</command>
+        <command>-fs NAMENODE -mkdir /dir0/dir1/</command>
         <command>-fs NAMENODE -touchz /dir0/dir1/file1</command>
         <command>-fs NAMENODE -rm -r /dir0/\*</command>
         <command>-fs NAMENODE -ls -R /dir0</command>
@@ -977,7 +980,7 @@
     <test> <!-- TESTED -->
       <description>du: file using relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -touchz test</command> <!-- make sure user home dir exists -->
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytesZZ</command>
         <command>-fs NAMENODE -du data15bytesZZ</command>
       </test-commands>
@@ -995,6 +998,7 @@
     <test> <!-- TESTED -->
       <description>du: files using globbing</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p CLITEST_DATA</command> 
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes data30bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command>
@@ -1045,7 +1049,7 @@
     <test> <!-- TESTED -->
       <description>du: directory using relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command>
         <command>-fs NAMENODE -du dir0</command>
       </test-commands>
@@ -1352,13 +1356,13 @@
     <test> <!-- TESTED -->
       <description>dus: directories/files using relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir dir0/dir2/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir1/data15bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/dir1/data30bytes</command>
@@ -1724,6 +1728,7 @@
     <test> <!-- TESTED -->
       <description>mv: file (relative) to file (relative)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -mv file1 file2</command>
         <command>-fs NAMENODE -ls file*</command>        
@@ -2127,6 +2132,7 @@
     <test> <!-- TESTED -->
       <description>cp: file (absolute path) to file (relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz /file1</command>
         <command>-fs NAMENODE -cp /file1 file2</command>
         <command>-fs NAMENODE -ls /file1 file2</command>
@@ -2149,6 +2155,7 @@
     <test> <!-- TESTED -->
       <description>cp: file (relative path) to file (absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -cp file1 /file2</command>
         <command>-fs NAMENODE -ls file1 /file2</command>
@@ -2171,6 +2178,7 @@
     <test> <!-- TESTED -->
       <description>cp: file (relative path) to file (relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -cp file1 file2</command>
         <command>-fs NAMENODE -ls file1 file2</command>
@@ -2720,6 +2728,7 @@
     <test> <!-- TESTED -->
        <description>cp: putting file into an already existing destination with -f option(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /user</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz /user/file0</command>
         <command>-fs NAMENODE -cp -f CLITEST_DATA/data120bytes /user/file0</command>
         <command>-fs NAMENODE -cat /user/file0</command>
@@ -3160,6 +3169,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing a file (absolute path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /dir0</command>
         <command>-fs NAMENODE -touchz /dir0/file0</command>
         <command>-fs NAMENODE -rm /dir0/file0</command>
       </test-commands>
@@ -3177,6 +3187,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing a file (relative path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -rm file0</command>
       </test-commands>
@@ -3194,6 +3205,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing files by globbing (absolute path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /dir0</command>
         <command>-fs NAMENODE -touchz /dir0/file0</command>
         <command>-fs NAMENODE -touchz /dir0/file1</command>
         <command>-fs NAMENODE -touchz /dir0/file2</command>
@@ -3226,6 +3238,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing files by globbing (relative path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir dir</command>
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -touchz file2</command>
@@ -3275,7 +3288,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing a directory (relative path) </description>
       <test-commands>
-        <command>-fs NAMENODE mkdir dir0</command>
+        <command>-fs NAMENODE mkdir -p dir0</command>
         <command>-fs NAMENODE -rm dir0</command>
       </test-commands>
       <cleanup-commands>
@@ -3555,6 +3568,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing a file (absolute path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /dir0</command>
         <command>-fs NAMENODE -touchz /dir0/file0</command>
         <command>-fs NAMENODE -rm -r /dir0/file0</command>
       </test-commands>
@@ -3572,6 +3586,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing a file (relative path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -rm -r file0</command>
       </test-commands>
@@ -3606,7 +3621,7 @@
     <test> <!-- TESTED -->
       <description>rm: removing a directory (relative path) </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -rm -r dir0</command>
       </test-commands>
       <cleanup-commands>
@@ -3655,10 +3670,10 @@
     <test> <!-- TESTED -->
       <description>rm: removing directories by globbing (relative path) </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir1</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir3</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir3</command>
         <command>-fs NAMENODE -rm -r dir*</command>
       </test-commands>
       <cleanup-commands>
@@ -3968,6 +3983,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into a file (relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -du data15bytes</command>
@@ -3986,7 +4002,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into a directory(absolute path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir /dir0/dir1/data</command>
+        <command>-fs NAMENODE -mkdir -p /dir0/dir1/data</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes /dir0/dir1/data</command> -->
         <command>-fs NAMENODE -du /dir0/dir1/data</command>
       </test-commands>
@@ -4004,7 +4020,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into a directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0/dir1/data</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/data</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir1/data</command>
         <command>-fs NAMENODE -du dir0/dir1/data</command>
       </test-commands>
@@ -4044,7 +4060,7 @@
     <test> <!-- TESTED -->
       <description>put: putting many files into an existing directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes dir0</command>
         <command>-fs NAMENODE -du dir0</command>
       </test-commands>
@@ -4066,6 +4082,7 @@
     <test> <!-- TESTED -->
       <description>put: putting non existent file(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put /user/wrongdata file</command>
       </test-commands>
@@ -4083,6 +4100,7 @@
     <test> <!-- TESTED -->
       <description>put: putting non existent file(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put wrongdata file</command>
       </test-commands>
@@ -4100,6 +4118,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into an already existing destination(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /user</command>
         <command>-fs NAMENODE -touchz /user/file0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes /user/file0</command>
       </test-commands>
@@ -4117,6 +4136,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into an already existing destination with -f option(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /user</command>
         <command>-fs NAMENODE -touchz /user/file0</command>
         <command>-fs NAMENODE -put -f CLITEST_DATA/data120bytes /user/file0</command>
         <command>-fs NAMENODE -cat /user/file0</command>
@@ -4135,6 +4155,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into an already existing destination(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes file0</command>
       </test-commands>
@@ -4154,6 +4175,7 @@
       <test-commands>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes /data15bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes /data30bytes</command>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -put /data15bytes /data30bytes file0</command>
       </test-commands>
@@ -4206,7 +4228,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into a directory in hdfs:// path </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir /dir1/data</command>
+        <command>-fs NAMENODE -mkdir -p /dir1/data</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs:///dir1/data</command>
         <command>-fs NAMENODE -du hdfs:///dir1/data/</command>
       </test-commands>
@@ -4262,6 +4284,7 @@
     <test> <!-- TESTED -->
       <description>put: putting local file into an already existing destination in hdfs:// path </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir hdfs:///user/</command>
         <command>-fs NAMENODE -touchz hdfs:///user/file0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs:///user/file0</command>
       </test-commands>
@@ -4329,7 +4352,7 @@
     <test> <!-- TESTED -->
       <description>put: putting file into a directory in Namenode's path </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir /dir1/data</command>
+        <command>-fs NAMENODE -mkdir -p /dir1/data</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODE/dir1/data</command>
         <command>-fs NAMENODE -du NAMENODE/dir1/data</command>
       </test-commands>
@@ -4385,6 +4408,7 @@
     <test> <!-- TESTED -->
       <description>put: putting local file into an already existing destination in Namenode's path</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir NAMENODE/user/</command>
         <command>-fs NAMENODE -touchz NAMENODE/user/file0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODE/user/file0</command>
       </test-commands>
@@ -4453,6 +4477,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying file into a file (relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -du data15bytes</command>
@@ -4471,7 +4496,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying file into a directory(absolute path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir /dir0/dir1/data</command>
+        <command>-fs NAMENODE -mkdir -p /dir0/dir1/data</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes /dir0/dir1/data</command>
         <command>-fs NAMENODE -du /dir0/dir1/data/*</command>
       </test-commands>
@@ -4489,7 +4514,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying file into a directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0/dir1/data</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1/data</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes dir0/dir1/data</command>
         <command>-fs NAMENODE -du dir0/dir1/data/*</command>
       </test-commands>
@@ -4529,7 +4554,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying many files into an existing directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes dir0</command>
         <command>-fs NAMENODE -du dir0</command>
       </test-commands>
@@ -4551,6 +4576,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying non existent file(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -copyFromLocal /user/wrongdata file</command>
       </test-commands>
@@ -4568,6 +4594,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying non existent file(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -copyFromLocal wrongdata file</command>
       </test-commands>
@@ -4585,6 +4612,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying file into an already existing destination(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /user</command> 
         <command>-fs NAMENODE -touchz /user/file0</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes /user/file0</command>
       </test-commands>
@@ -4602,6 +4630,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: copying file into an already existing destination with -f option(absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /user</command> 
         <command>-fs NAMENODE -touchz /user/file0</command>
         <command>-fs NAMENODE -copyFromLocal -f CLITEST_DATA/data120bytes /user/file0</command>
         <command>-fs NAMENODE -cat /user/file0</command>
@@ -4621,6 +4650,7 @@
     
       <description>copyFromLocal: copying file into an already existing destination(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes file0</command>
       </test-commands>
@@ -4640,6 +4670,7 @@
       <test-commands>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes /data15bytes</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data30bytes /data30bytes</command>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -copyFromLocal /data15bytes /data30bytes file0</command>
       </test-commands>
@@ -4750,6 +4781,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: Test for hdfs:// path - copying local file into an already existing destination</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir hdfs:///user/</command>
         <command>-fs NAMENODE -touchz hdfs:///user/file0</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes hdfs:///user/file0</command>
       </test-commands>
@@ -4876,6 +4908,7 @@
     <test> <!-- TESTED -->
       <description>copyFromLocal: Test for Namenode's path - copying local file into an already existing destination</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir NAMENODE/user/</command>
         <command>-fs NAMENODE -touchz NAMENODE/user/file0</command>
         <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes NAMENODE/user/file0</command>
       </test-commands>
@@ -5012,6 +5045,7 @@
     <test>
       <description>cat: contents of file(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -cat data15bytes</command>
@@ -5051,7 +5085,7 @@
     <test> <!-- TESTED-->
       <description>cat: contents of files(relative path) using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command>
@@ -5093,7 +5127,7 @@
     <test> <!-- TESTED-->
       <description>cat: contents of files(relative path) without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command>
@@ -5162,7 +5196,7 @@
     <test> <!-- TESTED -->
       <description>cat: contents of directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
         <command>-fs NAMENODE -cat dir1</command>
       </test-commands>
       <cleanup-commands>
@@ -5444,11 +5478,30 @@
         </comparator>
       </comparators>
     </test>
+ 
+    <test> <!-- TESTED -->
+      <description>mkdir: creating directory (absolute path) </description>
+      <test-commands>
+        <command>-fs NAMENODE -mkdir /dir0</command>
+        <command>-fs NAMENODE -mkdir /dir0/b/</command>
+        <command>-fs NAMENODE -du -s /dir0/b</command>
+      </test-commands>
+      <cleanup-commands>
+        <command>-fs NAMENODE -rm /user</command>
+      </cleanup-commands>
+      <comparators>
+        <comparator>
+          <type>RegexpComparator</type>
+          <expected-output>^0\s+/dir0/b</expected-output>
+        </comparator>
+      </comparators>
+    </test>
     
+   
     <test> <!-- TESTED -->
       <description>mkdir: creating directory (relative path) </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0 </command>
+        <command>-fs NAMENODE -mkdir -p dir0 </command>
         <command>-fs NAMENODE -du -s dir0</command>
       </test-commands>
       <cleanup-commands>
@@ -5497,10 +5550,10 @@
     <test> <!-- TESTED -->
       <description>mkdir: creating many directories (relative path) </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0 </command>
-        <command>-fs NAMENODE -mkdir dir1 </command>
-        <command>-fs NAMENODE -mkdir dir2 </command>
-        <command>-fs NAMENODE -mkdir dir3 </command>
+        <command>-fs NAMENODE -mkdir -p dir0 </command>
+        <command>-fs NAMENODE -mkdir -p dir1 </command>
+        <command>-fs NAMENODE -mkdir -p dir2 </command>
+        <command>-fs NAMENODE -mkdir -p dir3 </command>
         <command>-fs NAMENODE -du -s dir*</command>
       </test-commands>
       <cleanup-commands>
@@ -5547,7 +5600,7 @@
       <description>mkdir: creating a directory with the name of an already existing file</description>
       <test-commands>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
-        <command>-fs NAMENODE -mkdir data15bytes</command>
+        <command>-fs NAMENODE -mkdir -p data15bytes</command>
       </test-commands>
       <cleanup-commands>
         <command>-fs NAMENODE -rm -r data15bytes</command>
@@ -5721,10 +5774,27 @@
     </test>
 
     <test> <!-- TESTED -->
-      <description>mkdir: Test recreate of existing directory fails</description>
+      <description>mkdir: Test create of directory with no parent and no -p fails</description>
       <test-commands>
         <command>-fs NAMENODE -rm -r -f dir0</command>
         <command>-fs NAMENODE -mkdir dir0/dir1</command>
+      </test-commands>
+      <cleanup-commands>
+        <command>-fs NAMENODE -rm -r dir0</command>
+      </cleanup-commands>
+      <comparators>
+        <comparator>
+          <type>RegexpComparator</type>
+          <expected-output>mkdir: `dir0/dir1': No such file or directory</expected-output>
+        </comparator>
+      </comparators>
+    </test>
+    
+    <test> <!-- TESTED -->
+      <description>mkdir: Test recreate of existing directory fails</description>
+      <test-commands>
+        <command>-fs NAMENODE -rm -r -f dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -mkdir dir0/dir1</command>
       </test-commands>
       <cleanup-commands>
@@ -5742,7 +5812,7 @@
       <description>mkdir: Test recreate of existing directory with -p succeeds</description>
       <test-commands>
         <command>-fs NAMENODE -rm -r -f dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
       </test-commands>
       <cleanup-commands>
@@ -5760,6 +5830,7 @@
     <test> <!-- TESTED -->
       <description>setrep: existent file (absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /dir0</command> 
         <command>-fs NAMENODE -touchz /dir0/file0</command>
         <command>-fs NAMENODE -setrep 2 /dir0/file0</command>
       </test-commands>
@@ -5777,6 +5848,7 @@
     <test> <!-- TESTED -->
       <description>setrep: existent file (relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -setrep 2 file0</command>
       </test-commands>
@@ -5794,6 +5866,7 @@
     <test> <!-- TESTED -->
       <description>setrep: existent directory (absolute path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /dir0</command>
         <command>-fs NAMENODE -touchz /dir0/file0</command>
         <command>-fs NAMENODE -touchz /dir0/file1</command>
         <command>-fs NAMENODE -setrep -R 2 /dir0</command>
@@ -5816,6 +5889,7 @@
     <test> <!-- TESTED -->
       <description>setrep: existent directory (relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/file1</command>
         <command>-fs NAMENODE -setrep -R 2 dir0</command>
@@ -5870,6 +5944,7 @@
     <test> <!-- TESTED -->
       <description>setrep: Test for hdfs:// path - existent file</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir hdfs:///dir0/</command>
         <command>-fs NAMENODE -touchz hdfs:///dir0/file0</command>
         <command>-fs NAMENODE -setrep 2 hdfs:///dir0/file0</command>
       </test-commands>
@@ -5887,6 +5962,7 @@
     <test> <!-- TESTED -->
       <description>setrep: Test for hdfs:// path - existent directory</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir hdfs:///dir0/</command>
         <command>-fs NAMENODE -touchz hdfs:///dir0/file0</command>
         <command>-fs NAMENODE -touchz hdfs:///dir0/file1</command>
         <command>-fs NAMENODE -setrep -R 2 hdfs:///dir0</command>
@@ -5909,6 +5985,7 @@
     <test> <!-- TESTED -->
       <description>setrep: Test for hdfs:// path - non existent file</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir hdfs:///dir0/</command>
         <command>-fs NAMENODE -setrep 2 hdfs:///dir0/file</command>
       </test-commands>
       <cleanup-commands>
@@ -5925,6 +6002,7 @@
     <test> <!-- TESTED -->
       <description>setrep: Test for Namenode's path - existent file</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir NAMENODE/dir0/</command>
         <command>-fs NAMENODE -touchz NAMENODE/dir0/file0</command>
         <command>-fs NAMENODE -setrep 2 NAMENODE/dir0/file0</command>
       </test-commands>
@@ -5942,6 +6020,7 @@
     <test> <!-- TESTED -->
       <description>setrep: Test for Namenode's path - existent directory</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p NAMENODE/dir0</command>
         <command>-fs NAMENODE -touchz NAMENODE/dir0/file0</command>
         <command>-fs NAMENODE -touchz NAMENODE/dir0/file1</command>
         <command>-fs NAMENODE -setrep -R 2 NAMENODE/dir0</command>
@@ -5981,6 +6060,7 @@
     <test> <!-- TESTED -->
       <description>touchz: touching file (absolute path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir /user</command>
         <command>-fs NAMENODE -touchz /user/file0</command>
         <command>-fs NAMENODE -du /user/file0</command>
       </test-commands>
@@ -5994,10 +6074,26 @@
         </comparator>
       </comparators>
     </test>
-    
+ 
+    <test> <!-- TESTED -->
+      <description>touchz: touching file in non-existent directory </description>
+      <test-commands>
+        <command>-fs NAMENODE -touchz file0 </command>
+      </test-commands>
+      <cleanup-commands>
+      </cleanup-commands>
+      <comparators>
+        <comparator>
+          <type>RegexpComparator</type>
+          <expected-output>touchz: `file0': No such file or directory</expected-output>
+        </comparator>
+      </comparators>
+    </test>
+ 
     <test> <!-- TESTED -->
       <description>touchz: touching file(relative path) </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0 </command>
         <command>-fs NAMENODE -du file0</command>
       </test-commands>
@@ -6015,6 +6111,7 @@
     <test> <!-- TESTED -->
       <description>touchz: touching many files </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0 file1 file2</command>
         <command>-fs NAMENODE -du file*</command>
       </test-commands>
@@ -6034,6 +6131,7 @@
     <test> <!-- TESTED -->
       <description>touchz: touching already existing file </description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -touchz data15bytes</command>
       </test-commands>
@@ -6051,6 +6149,7 @@
     <test> <!-- TESTED -->
       <description>touchz: Test for hdfs:// path - touching file</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p hdfs:///user/</command>
         <command>-fs NAMENODE -touchz hdfs:///user/file0</command>
         <command>-fs NAMENODE -du hdfs:///user/file0</command>
       </test-commands>
@@ -6304,6 +6403,7 @@
     <test> <!-- TESTED -->
       <description>stat: statistics about file(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command>
         <command>-fs NAMENODE -stat "%n-%b" data60bytes</command>
@@ -6339,7 +6439,7 @@
     <test> <!-- TESTED -->
       <description>stat: statistics about directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dirtest</command>
+        <command>-fs NAMENODE -mkdir -p dirtest</command>
         <command>-fs NAMENODE -stat "%n-%b-%o" dirtest</command>
       </test-commands>
       <cleanup-commands>
@@ -6394,12 +6494,13 @@
     <test> <!-- TESTED -->
       <description>stat: statistics about files (relative path) using globbing</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes data30bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data120bytes data120bytes</command>
-        <command>-fs NAMENODE -mkdir datadir</command>
+        <command>-fs NAMENODE -mkdir -p datadir</command>
         <command>-fs NAMENODE -stat "%n-%b" data*</command>
       </test-commands>
       <cleanup-commands>
@@ -6501,7 +6602,7 @@
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs:///dir0/data30bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs:///dir0/data60bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs:///dir0/data120bytes</command>
-        <command>-fs NAMENODE -mkdir hdfs:///dir0/datadir</command>
+        <command>-fs NAMENODE -mkdir -p hdfs:///dir0/datadir</command>
         <command>-fs NAMENODE -stat "%n-%b" hdfs:///dir0/data*</command>
       </test-commands>
       <cleanup-commands>
@@ -6588,7 +6689,7 @@
         <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODE/dir0/data30bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODE/dir0/data60bytes</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODE/dir0/data120bytes</command>
-        <command>-fs NAMENODE -mkdir NAMENODE/dir0/datadir</command>
+        <command>-fs NAMENODE -mkdir -p NAMENODE/dir0/datadir</command>
         <command>-fs NAMENODE -stat "%n-%b" NAMENODE/dir0/data*</command>
       </test-commands>
       <cleanup-commands>
@@ -6654,6 +6755,7 @@
     <test> <!--TESTED-->
       <description>tail: contents of file(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
         <command>-fs NAMENODE -tail data15bytes</command>
@@ -6759,7 +6861,7 @@
     <test> <!-- TESTED -->
       <description>tail: contents of directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
         <command>-fs NAMENODE -tail dir1</command>
       </test-commands>
       <cleanup-commands>
@@ -6932,6 +7034,7 @@
     <test> <!-- TESTED -->
       <description>count: file using relative path</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -count file1</command>
       </test-commands>
@@ -6966,7 +7069,7 @@
     <test> <!-- TESTED -->
       <description>count: directory using relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
         <command>-fs NAMENODE -count dir1</command>
       </test-commands>
       <cleanup-commands>
@@ -7109,6 +7212,7 @@
     <test> <!-- TESTED -->
       <description>count: relative path to multiple files without globbing</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -touchz file2</command>
         <command>-fs NAMENODE -touchz file3</command>
@@ -7173,10 +7277,10 @@
     <test> <!-- TESTED -->
       <description>count: relative path to multiple directories using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir3</command>
-        <command>-fs NAMENODE -mkdir dir4</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir3</command>
+        <command>-fs NAMENODE -mkdir -p dir4</command>
         <command>-fs NAMENODE -count dir* </command>
       </test-commands>
       <cleanup-commands>
@@ -7237,10 +7341,10 @@
     <test> <!-- TESTED -->
       <description>count: relative path to multiple directories without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir3</command>
-        <command>-fs NAMENODE -mkdir dir4</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir3</command>
+        <command>-fs NAMENODE -mkdir -p dir4</command>
         <command>-fs NAMENODE -count dir1 dir2 dir3 dir4 </command>
       </test-commands>
       <cleanup-commands>
@@ -7286,6 +7390,7 @@
     <test> <!-- TESTED -->
       <description>count: file using relative path with -q option</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -count -q file1</command>
       </test-commands>
@@ -7322,7 +7427,7 @@
     <test> <!-- TESTED -->
       <description>count: directory using relative path with -q option</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
         <dfs-admin-command>-fs NAMENODE -setQuota 10 dir1 </dfs-admin-command>
         <dfs-admin-command>-fs NAMENODE -setSpaceQuota 1m dir1 </dfs-admin-command>
         <command>-fs NAMENODE -count -q dir1</command>
@@ -7467,6 +7572,7 @@
     <test> <!-- TESTED -->
       <description>count: relative path to multiple files without globbing with -q option</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -touchz file2</command>
         <command>-fs NAMENODE -touchz file3</command>
@@ -7539,10 +7645,10 @@
     <test> <!-- TESTED -->
       <description>count: relative path to multiple directories using globbing with -q option</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir3</command>
-        <command>-fs NAMENODE -mkdir dir4</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir3</command>
+        <command>-fs NAMENODE -mkdir -p dir4</command>
         <dfs-admin-command>-fs NAMENODE -setQuota 10 dir1 </dfs-admin-command>
         <dfs-admin-command>-fs NAMENODE -setSpaceQuota 1m dir1 </dfs-admin-command>
         <dfs-admin-command>-fs NAMENODE -setQuota 10 dir2 </dfs-admin-command>
@@ -7619,10 +7725,10 @@
     <test> <!-- TESTED -->
       <description>count: relative path to multiple directories without globbing with -q option</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir1</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir3</command>
-        <command>-fs NAMENODE -mkdir dir4</command>
+        <command>-fs NAMENODE -mkdir -p dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir3</command>
+        <command>-fs NAMENODE -mkdir -p dir4</command>
         <dfs-admin-command>-fs NAMENODE -setQuota 10 dir1 </dfs-admin-command>
         <dfs-admin-command>-fs NAMENODE -setSpaceQuota 1m dir1 </dfs-admin-command>
         <dfs-admin-command>-fs NAMENODE -setQuota 10 dir2 </dfs-admin-command>
@@ -8426,6 +8532,7 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of file in relative path</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file1</command>
         <command>-fs NAMENODE -chmod 666 file1</command>
         <command>-fs NAMENODE -ls file1</command>
@@ -8482,8 +8589,8 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of directory in relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -8594,8 +8701,8 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(normal mode) of directory in relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -8662,8 +8769,8 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of directory in relative path recursively</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -8730,8 +8837,8 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(normal mode) of directory in relative path recursively</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -8949,13 +9056,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of multiple directories in relative path using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9125,13 +9232,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of multiple directories in relative path without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9301,13 +9408,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(normal mode) of multiple directories in relative path using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9477,13 +9584,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(normal mode) of multiple directories in relative path without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9587,13 +9694,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of multiple directories in relative path recursively using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9697,13 +9804,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(octal mode) of multiple directories in relative path recursively without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9807,13 +9914,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(normal mode) of multiple directories in relative path recursively using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -9917,13 +10024,13 @@
     <test> <!-- TESTED -->
       <description>chmod: change permission(normal mode) of multiple directories in relative path recursively without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -12183,8 +12290,8 @@
     <test> <!-- TESTED -->
       <description>chown: change ownership of directory in relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -12251,8 +12358,8 @@
     <test> <!-- TESTED -->
       <description>chown: change ownership of directory in relative path recursively </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -12438,13 +12545,13 @@
     <test> <!-- TESTED -->
       <description>chown: change ownership of multiple directories in relative path using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -12614,13 +12721,13 @@
     <test> <!-- TESTED -->
       <description>chown: change ownership of multiple directories in relative path without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -12724,13 +12831,13 @@
     <test> <!-- TESTED -->
       <description>chown: change ownership of multiple directories recursively in relative path using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -12834,13 +12941,13 @@
     <test> <!-- TESTED -->
       <description>chown: change ownership of multiple directories recursively in relative path without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -13462,8 +13569,8 @@
     <test> <!-- TESTED -->
       <description>chgrp: change group of directory in relative path</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -13530,8 +13637,8 @@
     <test> <!-- TESTED -->
       <description>chgrp: change group of directory in relative path recursively </description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
@@ -13717,13 +13824,13 @@
     <test> <!-- TESTED -->
       <description>chgrp: change group of multiple directories in relative path using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -13893,13 +14000,13 @@
     <test> <!-- TESTED -->
       <description>chgrp: change group of multiple directories in relative path without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -14003,13 +14110,13 @@
     <test> <!-- TESTED -->
       <description>chgrp: change group of multiple directories recursively in relative path using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -14113,13 +14220,13 @@
     <test> <!-- TESTED -->
       <description>chgrp: change group of multiple directories recursively in relative path without globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir dir0</command>
-        <command>-fs NAMENODE -mkdir dir0/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
         <command>-fs NAMENODE -touchz dir0/file0</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -mkdir dir2</command>
-        <command>-fs NAMENODE -mkdir dir2/dir1</command>
+        <command>-fs NAMENODE -mkdir -p dir2</command>
+        <command>-fs NAMENODE -mkdir -p dir2/dir1</command>
         <command>-fs NAMENODE -touchz dir2/file0</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file1</command>
         <command>-fs NAMENODE -touchz dir2/dir1/file2</command>
@@ -15163,29 +15270,6 @@
     </test>
 
     <test> <!--Tested -->
-      <description>help: help for dfsadmin upgradeProgress</description>
-      <test-commands>
-        <dfs-admin-command>-fs NAMENODE -help upgradeProgress</dfs-admin-command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-upgradeProgress &lt;status\|details\|force&gt;:( )*</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^( |\t)*request current distributed upgrade status,( )*</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^( |\t)*a detailed status or force the upgrade to proceed.( )*</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!--Tested -->
       <description>help: help for dfsadmin metasave</description>
       <test-commands>
         <dfs-admin-command>-fs NAMENODE -help metasave</dfs-admin-command>
@@ -15801,6 +15885,23 @@
       </comparators>
     </test>
 
+    <!-- Test for rollEdits -->
+    <test> <!-- TESTED -->
+      <description>rollEdits: test rollEdits admin command</description>
+      <test-commands>
+        <dfs-admin-command>-fs NAMENODE -rollEdits</dfs-admin-command>
+      </test-commands>
+      <cleanup-commands>
+        <!-- no cleanup -->
+      </cleanup-commands>
+      <comparators>
+        <comparator>
+          <type>RegexpComparator</type>
+          <expected-output>New segment starts at txid \d+</expected-output>
+        </comparator>
+      </comparators>
+    </test>
+
     <!-- Test for refreshNodes -->
     <test> <!-- TESTED -->
       <description>refreshNodes: to refresh the nodes</description>
@@ -15879,7 +15980,7 @@
       <comparators>
         <comparator>
           <type>RegexpComparator</type>
-          <expected-output>Created file metafile on server hdfs:\/\/[-.a-zA-Z0-9\.:]+</expected-output>
+          <expected-output>Created metasave file metafile in the log directory of namenode hdfs:\/\/[-.a-zA-Z0-9\.:]+</expected-output>
         </comparator>
       </comparators>
     </test>
@@ -15952,6 +16053,7 @@
     <test> <!-- TESTED -->
       <description>moveFromLocal: moving non existent file(relative path)</description>
       <test-commands>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz test</command>
         <command>-fs NAMENODE -moveFromLocal wrongdata file</command>
       </test-commands>
@@ -15971,6 +16073,7 @@
       <test-commands>
         <command>-fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes /data15bytes</command>
         <command>-fs NAMENODE -moveFromLocal CLITEST_DATA/data30bytes /data30bytes</command>
+        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
         <command>-fs NAMENODE -touchz file0</command>
         <command>-fs NAMENODE -moveFromLocal /data15bytes /data30bytes file0</command>
       </test-commands>

Modified: hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/pom.xml
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/pom.xml?rev=1399950&r1=1399949&r2=1399950&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/pom.xml (original)
+++ hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/pom.xml Fri Oct 19 02:25:55 2012
@@ -34,7 +34,6 @@ http://maven.apache.org/xsd/maven-4.0.0.
     <module>hadoop-hdfs</module>
     <module>hadoop-hdfs-httpfs</module>
     <module>hadoop-hdfs/src/contrib/bkjournal</module>
-    <module>hadoop-hdfs-raid</module>
   </modules>
 
   <build>



Mime
View raw message