提交 ea57fba3 编写于 作者: P plum-lihui

[modify]

上级 45f7b12f
......@@ -8,17 +8,18 @@ set -e
# deployCluster.sh
curr_dir=$(pwd)
echo "currect pwd: ${curr_dir}"
source ./cleanCluster.sh -r /data
source ./cleanCluster.sh -r /data2
./cleanCluster.sh -r "/data"
./cleanCluster.sh -r "/data2"
source ./compileVersion.sh -r ${curr_dir}/../../../../ -v "3.0"
./compileVersion.sh -r ${curr_dir}/../../../../ -v "3.0"
source ./setupDnodes.sh -r /data -n 1 -f trd02:7000 -p 7000
source ./setupDnodes.sh -r /data2 -n 1 -f trd02:7000 -p 8000
./setupDnodes.sh -r "/data" -n 1 -f "trd02:7000" -p 7000
./setupDnodes.sh -r "/data2" -n 1 -f "trd02:7000" -p 8000
#source ./setupDnodes.sh -r /data -n 2 -f trd02:7000 -p 7000
#source ./setupDnodes.sh -r /data2 -n 2 -f trd02:7000 -p 8000
#./setupDnodes.sh -r "/data" -n 2 -f trd02:7000 -p 7000
#./setupDnodes.sh -r "/data2" -n 2 -f trd02:7000 -p 8000
......
......@@ -94,7 +94,7 @@ createNewDnodesDataDir() {
mkdir -p ${dataRootDir}/dnode_${i}/data
createNewCfgFile ${dataRootDir}/dnode_${i}/cfg ${dataRootDir}/dnode_${i}/data ${dataRootDir}/dnode_${i}/log ${firstEp} ${serverPort}
echo "create dnode: ${serverPort}, ${dataRootDir}/dnode_${i}"
#echo "create dnode: ${serverPort}, ${dataRootDir}/dnode_${i}"
serverPort=$((10#${serverPort}+100))
done
}
......@@ -131,6 +131,7 @@ fi
## start all dnode by nohup
startDnodes ${dnodeNumber}
echo " run setupDnodes.sh end !!!"
echo "====run setupDnodes.sh end===="
echo " "
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册