diff options
author | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-03-01 14:38:11 +0800 |
---|---|---|
committer | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-03-01 14:38:11 +0800 |
commit | 7da45d65be36d36b880cc55c5036e96c24b53f00 (patch) | |
tree | d4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/qa/workunits/hadoop/repl.sh | |
parent | 691462d09d0987b47e112d6ee8740375df3c51b2 (diff) |
remove ceph code
This patch removes initial ceph code, due to license issue.
Change-Id: I092d44f601cdf34aed92300fe13214925563081c
Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/qa/workunits/hadoop/repl.sh')
-rwxr-xr-x | src/ceph/qa/workunits/hadoop/repl.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/ceph/qa/workunits/hadoop/repl.sh b/src/ceph/qa/workunits/hadoop/repl.sh deleted file mode 100755 index f2e9fcc..0000000 --- a/src/ceph/qa/workunits/hadoop/repl.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -set -e -set -x - -# bail if $TESTDIR is not set as this test will fail in that scenario -[ -z $TESTDIR ] && { echo "\$TESTDIR needs to be set, but is not. Exiting."; exit 1; } - -# if HADOOP_PREFIX is not set, use default -[ -z $HADOOP_PREFIX ] && { HADOOP_PREFIX=$TESTDIR/hadoop; } - -# create pools with different replication factors -for repl in 2 3 7 8 9; do - name=hadoop.$repl - ceph osd pool create $name 8 8 - ceph osd pool set $name size $repl - - id=`ceph osd dump | sed -n "s/^pool \([0-9]*\) '$name'.*/\1/p"` - ceph mds add_data_pool $id -done - -# create a file in each of the pools -for repl in 2 3 7 8 9; do - name=hadoop.$repl - $HADOOP_PREFIX/bin/hadoop fs -rm -f /$name.dat - dd if=/dev/zero bs=1048576 count=1 | \ - $HADOOP_PREFIX/bin/hadoop fs -Dceph.data.pools="$name" \ - -put - /$name.dat -done - -# check that hadoop reports replication matching -# that of the pool the file was written into -for repl in 2 3 7 8 9; do - name=hadoop.$repl - repl2=$($HADOOP_PREFIX/bin/hadoop fs -ls /$name.dat | awk '{print $2}') - if [ $repl -ne $repl2 ]; then - echo "replication factors didn't match!" - exit 1 - fi -done - -exit 0 |