aboutsummaryrefslogtreecommitdiff
path: root/demo/dfsio-write-test
diff options
context:
space:
mode:
Diffstat (limited to 'demo/dfsio-write-test')
-rwxr-xr-xdemo/dfsio-write-test8
1 files changed, 7 insertions, 1 deletions
diff --git a/demo/dfsio-write-test b/demo/dfsio-write-test
index ae56c33..575ee01 100755
--- a/demo/dfsio-write-test
+++ b/demo/dfsio-write-test
@@ -2,4 +2,10 @@
# test that generates 10 output files of size 1GB for a total of 10GB
-hadoop jar ${HADOOP_COMMON_HOME}/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-${HADOOP_VERSN}-tests.jar TestDFSIO -read -nrFiles 10 -fileSize 1000
+nrFiles=1
+fileSize=100
+
+[[ $# -ge 1 ]] && nrFiles=$1
+[[ $# -ge 2 ]] && fileSize=$2
+
+hadoop jar ${HADOOP_COMMON_HOME}/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-${HADOOP_VERSN}-tests.jar TestDFSIO -write -nrFiles $nrFiles -fileSize $fileSize