-
Notifications
You must be signed in to change notification settings - Fork 14
/
hbase_d.sh
32 lines (29 loc) · 654 Bytes
/
hbase_d.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# distribution
others=(c4-hadoop-tst-st71.bj c4-hadoop-tst-st72.bj c4-hadoop-tst-st73.bj c4-hadoop-tst-st74.bj)
script=/home/work/ycsb/hbase_d_run.sh
for server in ${others[*]}
do
scp $script $server:$script
done
all=(${others[*]} c4-hadoop-tst-st75.bj)
result=/home/work/ycsb/hbase_ycsb_result/result
rm out.hbase
for N in 30 50 100 200
do
for server in ${all[*]}
do
ssh $server "sh $script $N &" &
done
sleep 5
for server in ${all[*]}
do
ssh $server "test -f $result"
while [ $? -ne 0 ]
do
sleep 5
ssh $server "test -f $result"
done
ssh $server "cat $result" >> out.hbase
done
done