aboutsummaryrefslogtreecommitdiff
path: root/demo/dfsio-write-test
blob: 575ee0169e841241b5da6a25f60a6a245164bcaa (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# test that generates 10 output files of size 1GB for a total of 10GB

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