Nosql2グループ6ノート配置   Leave a comment

◆6ノートvm準備◆
master1   192.168.56.101
slave11    192.168.56.102
slave12    192.168.56.103

master2   192.168.56.111
slave21    192.168.56.112
slave22    192.168.56.113
◆環境準備◆
/u01/nosql/kv-1.2.123にソフトを格納します。
mkdir –p /u01/nosql
mkdir –p /u01/KVROOT
export KVHOME=/u01/nosql/kv-1.2.123
◆makebootconfig ◆
–master1:
java -jar $KVHOME/lib/kvstore-1.2.123.jar makebootconfig -root /u01/KVROOT -port 5000 -admin 5001 -host cdcjp80vm1 -harange 5010,5020
–master2
java -jar $KVHOME/lib/kvstore-1.2.123.jar makebootconfig -root /u01/KVROOT -port 5000 -admin 5001 -host 10.182.22.77 -harange 5010,5020
–slave11-22:
java -jar $KVHOME/lib/kvstore-1.2.123.jar makebootconfig -root /u01/KVROOT -port 5000 -host cdcjp80vm2 -harange 5010,5020
java -jar $KVHOME/lib/kvstore-1.2.123.jar makebootconfig -root /u01/KVROOT -port 5000 -host cdcjp80vm3 -harange 5010,5020
java -jar $KVHOME/lib/kvstore-1.2.123.jar makebootconfig -root /u01/KVROOT -port 5000 -host 10.182.22.79 -harange 5010,5020
java -jar $KVHOME/lib/kvstore-1.2.123.jar makebootconfig -root /u01/KVROOT -port 5000 -host 10.182.22.81 -harange 5010,5020
◆start -root◆
nohup java -jar $KVHOME/lib/kvstore-1.2.123.jar start -root /u01/KVROOT&
◆ping◆
java -jar $KVHOME/lib/kvstore-1.2.123.jar ping -port 5000 –host
◆run script◆
java -jar /u01/nosql/kv-1.2.123/lib/kvstore-1.2.123.jar runadmin -port 5000 -host cdcjp80vm1 -script /u01/nosql/kv-1.2.123/script6
◆script◆

### Begin Script ###
configure kvstore
plan -execute -name "Deploy kvstore DC" deploy-datacenter "kvstore" "NOKK"
plan -execute -name "Deploy master1" deploy-sn 1 cdcjp80vm1 5000
plan -execute -name "Deploy admin1" deploy-admin 1 5001
addpool kvstorePool
joinpool kvstorePool 1
plan -execute -name "Deploy slave11" deploy-sn 1 cdcjp80vm2 5000
joinpool kvstorePool 2
plan -execute -name "Deploy slave12" deploy-sn 1 cdcjp80vm3 5000
joinpool kvstorePool 3
plan -execute -name "Deploy master2" deploy-sn 1 10.182.22.77 5000
joinpool kvstorePool 4
plan -execute -name "Deploy slave21" deploy-sn 1 10.182.22.79 5000
joinpool kvstorePool 5
plan -execute -name "Deploy slave22" deploy-sn 1 10.182.22.81 5000
plan -execute -name "Deploy admin2" deploy-admin 1 5001
joinpool kvstorePool 6
plan -execute -name "Deploy the store" deploy-store kvstorePool 3 300
quit
### End Script ###

–停止
java -jar /u01/nosql/kv-1.2.123/lib/kvstore-1.2.123.jar stop -root /u01/KVROOT

Posted 2012/05/31 by linou518 in Nosql

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: