deployCluster.sh 534 字节
Newer Older
P
plum-lihui 已提交
1 2 3 4 5 6 7 8
#!/bin/bash
#
# deploy test cluster

set -e
#set -x

# deployCluster.sh 
P
plum-lihui 已提交
9 10
curr_dir=$(readlink -f "$(dirname "$0")")
echo $curr_dir
P
plum-lihui 已提交
11

P
plum-lihui 已提交
12 13
${curr_dir}/cleanCluster.sh -r "/data"
${curr_dir}/cleanCluster.sh -r "/data2"
P
plum-lihui 已提交
14

P
plum-lihui 已提交
15
${curr_dir}/compileVersion.sh -r ${curr_dir}/../../../../ -v "3.0"
P
plum-lihui 已提交
16

P
plum-lihui 已提交
17 18
${curr_dir}/setupDnodes.sh -r "/data"  -n 1 -f "trd02:7000" -p 7000
${curr_dir}/setupDnodes.sh -r "/data2" -n 1 -f "trd02:7000" -p 8000
P
plum-lihui 已提交
19

P
plum-lihui 已提交
20 21
#./setupDnodes.sh -r "/data"  -n 2 -f trd02:7000 -p 7000
#./setupDnodes.sh -r "/data2" -n 2 -f trd02:7000 -p 8000
P
plum-lihui 已提交
22 23 24 25