aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2014-02-18 11:12:39 +0000
committerAndrew McDermott <andrew.mcdermott@linaro.org>2014-02-18 11:12:39 +0000
commit52b14006b7f15c8097bd11c4a0b8eba1faef1b47 (patch)
tree54ab0a0601eddd5e6077393440839d1149f5f0ce /demo
parent0d02496bdccb0ac8bbda0e3c48fcb2b13b94a567 (diff)
downloadopenjdk8-hadoop-LCA14-52b14006b7f15c8097bd11c4a0b8eba1faef1b47.tar.gz
Add IO tests
Diffstat (limited to 'demo')
-rwxr-xr-xdemo/dfsio-read-test5
-rwxr-xr-xdemo/dfsio-write-test5
2 files changed, 10 insertions, 0 deletions
diff --git a/demo/dfsio-read-test b/demo/dfsio-read-test
new file mode 100755
index 0000000..f0e5bdd
--- /dev/null
+++ b/demo/dfsio-read-test
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# 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
diff --git a/demo/dfsio-write-test b/demo/dfsio-write-test
new file mode 100755
index 0000000..ae56c33
--- /dev/null
+++ b/demo/dfsio-write-test
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# 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