]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/hadoop-wordcount: fix/use -rmr command
authorSage Weil <sage@redhat.com>
Mon, 18 Aug 2014 15:38:10 +0000 (08:38 -0700)
committerSage Weil <sage@redhat.com>
Mon, 18 Aug 2014 15:38:10 +0000 (08:38 -0700)
-rm -r -f ... doesn't seem to work; use -rmr instead.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/hadoop-wordcount/test.sh

index 8d678bfa05ff3d729ee87fb6457cdd495d81df45..66fac10ddf7cbfe212c150943ce08ae0a7ad1060 100755 (executable)
@@ -17,7 +17,7 @@ wget http://ceph.com/qa/hadoop_input_files.tar -O $TESTDIR/hadoop_input/files.ta
 cd $TESTDIR/hadoop_input
 tar -xf $TESTDIR/hadoop_input/files.tar
 $HADOOP_HOME/bin/hadoop fs -mkdir /wordcount_input
-$HADOOP_HOME/bin/hadoop fs -rm -r -f /wordcount_output
+$HADOOP_HOME/bin/hadoop fs -rmr /wordcount_output
 $HADOOP_HOME/bin/hadoop fs -put $TESTDIR/hadoop_input/*txt /wordcount_input/
 $HADOOP_HOME/bin/hadoop jar $HADOOP_MR_HOME/hadoop-*examples.jar wordcount /wordcount_input /wordcount_output
 rm -rf $TESTDIR/hadoop_input