From b0d286dddbac09993684c3967ad4922d9c0ab725 Mon Sep 17 00:00:00 2001 From: Konstantin Boudnik Date: Thu, 12 Jun 2014 05:52:05 +0000 Subject: [PATCH] HDFS-6471. Merge r1602064 from trunk. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1602066 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 + .../src/test/resources/testHDFSConf.xml | 81 +++++++++++-------- 2 files changed, 50 insertions(+), 34 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index ed03eb6060d..1c0813c4aef 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -166,6 +166,9 @@ Release 2.5.0 - UNRELEASED HDFS-6379. HTTPFS - Implement ACLs support. (yoderme via tucu) + HDFS-6471. Make moveFromLocal CLI testcases to be non-disruptive + (Dasha Boudnik via cos) + OPTIMIZATIONS HDFS-6214. Webhdfs has poor throughput for files >2GB (daryn) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml index 744d917dc4f..9fb2dabf70d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml @@ -16118,8 +16118,7 @@ - + appendToFile @@ -16480,10 +16479,11 @@ moveFromLocal: moving non existent file(absolute path) - -fs NAMENODE -moveFromLocal /user/wrongdata file + -fs NAMENODE -mkdir -p /user/USERNAME/dir + -fs NAMENODE -moveFromLocal /user/wrongdata /user/USERNAME/dir - -fs NAMENODE -rm -r /user + -fs NAMENODE -rm -r /user/USERNAME @@ -16496,12 +16496,11 @@ moveFromLocal: moving non existent file(relative path) - -fs NAMENODE -mkdir -p dir - -fs NAMENODE -touchz test - -fs NAMENODE -moveFromLocal wrongdata file + -fs NAMENODE -mkdir -p /user/USERNAME/dir + -fs NAMENODE -moveFromLocal wrongdata /user/USERNAME/dir - -fs NAMENODE -rm -r /user + -fs NAMENODE -rm -r /user/USERNAME @@ -16514,19 +16513,19 @@ moveFromLocal: moving many files into an existing file - -fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes /data15bytes - -fs NAMENODE -moveFromLocal CLITEST_DATA/data30bytes /data30bytes - -fs NAMENODE -mkdir -p dir - -fs NAMENODE -touchz file0 - -fs NAMENODE -moveFromLocal /data15bytes /data30bytes file0 + -fs NAMENODE -cp CLITEST_DATA/data15bytes data15bytes + -fs NAMENODE -cp CLITEST_DATA/data30bytes data30bytes + -fs NAMENODE -mkdir -p /user/USERNAME/dir + -fs NAMENODE -touchz /user/USERNAME/dir/file0 + -fs NAMENODE -moveFromLocal data15bytes data30bytes /user/USERNAME/dir/file0 - -fs NAMENODE -rm -r /user + -fs NAMENODE -rm -r /user/USERNAME RegexpComparator - ^moveFromLocal: `file0': Is not a directory + moveFromLocal: `/user/USERNAME/dir/file0': Is not a directory @@ -16534,17 +16533,17 @@ moveFromLocal: moving many files into a non existent directory - -fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes /data15bytes - -fs NAMENODE -moveFromLocal CLITEST_DATA/data30bytes /data30bytes - -fs NAMENODE -moveFromLocal /data15bytes /data30bytes wrongdir + -fs NAMENODE -cp CLITEST_DATA/data15bytes data15bytes + -fs NAMENODE -cp CLITEST_DATA/data30bytes data30bytes + -fs NAMENODE -moveFromLocal data15bytes data30bytes /user/USERNAME/dir/wrongdir - -fs NAMENODE -rm -r /user + -fs NAMENODE -rm -r /user/USERNAME RegexpComparator - ^moveFromLocal: `wrongdir': No such file or directory + ^moveFromLocal: `/user/USERNAME/dir/wrongdir': No such file or directory @@ -16552,7 +16551,8 @@ moveFromLocal: Test for hdfs:// path - moving non existent file - -fs NAMENODE -moveFromLocal /user/wrongdata hdfs:///file + -fs NAMENODE -mkdir -p /user/USERNAME/dir + -fs NAMENODE -moveFromLocal /user/wrongdata hdfs:///user/USERNAME/dir/file -fs NAMENODE -rm -r hdfs:///* @@ -16568,8 +16568,11 @@ moveFromLocal: Test for hdfs:// path - moving many files into an existing file - -fs NAMENODE -touchz hdfs:///file0 - -fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes hdfs:///file0 + -fs NAMENODE -cp CLITEST_DATA/data15bytes data15bytes + -fs NAMENODE -cp CLITEST_DATA/data30bytes data30bytes + -fs NAMENODE -mkdir -p /user/USERNAME/dir + -fs NAMENODE -touchz hdfs:///user/USERNAME/dir/file + -fs NAMENODE -moveFromLocal data15bytes data30bytes hdfs:///user/USERNAME/dir/file -fs NAMENODE -rm -r hdfs:///* @@ -16577,7 +16580,7 @@ RegexpComparator - ^moveFromLocal: `hdfs:///file0': Is not a directory + moveFromLocal: `hdfs:///user/USERNAME/dir/file': Is not a directory @@ -16585,15 +16588,17 @@ moveFromLocal: Test for hdfs:// path - moving many files into a non existent directory - -fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes hdfs:///wrongdir + -fs NAMENODE -cp CLITEST_DATA/data15bytes data15bytes + -fs NAMENODE -cp CLITEST_DATA/data30bytes data30bytes + -fs NAMENODE -moveFromLocal data15bytes data30bytes hdfs:///user/USERNAME/dir/wrongdir - -fs NAMENODE -rm -r /user + -fs NAMENODE -rm -r hdfs:///* RegexpComparator - ^moveFromLocal: `hdfs:///wrongdir': No such file or directory + moveFromLocal: `hdfs:///user/USERNAME/dir/wrongdir': No such file or directory @@ -16601,7 +16606,8 @@ moveFromLocal: Test for Namenode's path - moving non existent file - -fs NAMENODE -moveFromLocal /user/wrongdata NAMENODE/file + -fs NAMENODE -mkdir -p NAMENODE/user/USERNAME/dir + -fs NAMENODE -moveFromLocal /user/wrongdata NAMENODE/user/USERNAME/dir -fs NAMENODE -rm -r NAMENODE/* @@ -16617,8 +16623,11 @@ moveFromLocal: Test for Namenode's path - moving many files into an existing file - -fs NAMENODE -touchz NAMENODE/file0 - -fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODE/file0 + -fs NAMENODE -mkdir -p NAMENODE/user/USERNAME/dir + -fs NAMENODE -touchz NAMENODE/user/USERNAME/dir/file0 + -fs NAMENODE -cp CLITEST_DATA/data15bytes data15bytes + -fs NAMENODE -cp CLITEST_DATA/data30bytes data30bytes + -fs NAMENODE -moveFromLocal data15bytes data30bytes NAMENODE/user/USERNAME/dir/file0 -fs NAMENODE -rm -r NAMENODE/* @@ -16626,7 +16635,7 @@ RegexpComparator - ^moveFromLocal: `hdfs://\w+[-.a-z0-9]*:[0-9]+/file0': Is not a directory + moveFromLocal: `hdfs://\w+[-.a-z0-9]*:[0-9]+/user/USERNAME/dir/file0': Is not a directory @@ -16634,15 +16643,19 @@ moveFromLocal: Test for Namenode's path - moving many files into a non existent directory - -fs NAMENODE -moveFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODE/wrongdir + -fs NAMENODE -mkdir -p NAMENODE/user/USERNAME + -fs NAMENODE -touchz NAMENODE/user/USERNAME/dir/file0 + -fs NAMENODE -cp CLITEST_DATA/data15bytes data15bytes + -fs NAMENODE -cp CLITEST_DATA/data30bytes data30bytes + -fs NAMENODE -moveFromLocal data15bytes data30bytes NAMENODE/user/USERNAME/wrongdir - -fs NAMENODE -rm -r /user + -fs NAMENODE -rm -r NAMENODE/* RegexpComparator - ^moveFromLocal: `hdfs://\w+[-.a-z0-9]*:[0-9]+/wrongdir': No such file or directory + moveFromLocal: `hdfs://\w+[-.a-z0-9]*:[0-9]+/user/USERNAME/wrongdir': No such file or directory