aboutsummaryrefslogtreecommitdiff
path: root/demo/dfsio-read-test
diff options
context:
space:
mode:
Diffstat (limited to 'demo/dfsio-read-test')
-rwxr-xr-xdemo/dfsio-read-test9
1 files changed, 8 insertions, 1 deletions
diff --git a/demo/dfsio-read-test b/demo/dfsio-read-test
index f0e5bdd..49b3968 100755
--- a/demo/dfsio-read-test
+++ b/demo/dfsio-read-test
@@ -2,4 +2,11 @@
# test using 10 input files of size 1GB
-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 -read -nrFiles $nrFiles -fileSize $fileSize