Last active
August 29, 2015 13:57
-
-
Save raimusyndrome/9910275 to your computer and use it in GitHub Desktop.
Oracle NoSQLを3台のマシンのクラスタ構成で起動する手順の例。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
○前準備 | |
各ホストでOracle NoSQL Databaseのzipを解凍する | |
以下はkv-x.y.zディレクトリ(解凍後のディレクトリ)で実行する | |
○host1で実行 | |
java -jar lib/kvstore.jar makebootconfig -root KVROOT -port 5000 -admin 5001 -host host1 -harange 5010,5020 | |
nohup java -jar lib/kvstore.jar start -root KVROOT & | |
○host2で実行 | |
java -jar lib/kvstore.jar makebootconfig -root KVROOT -port 5000 -host host2 -harange 5010,5020 | |
nohup java -jar lib/kvstore.jar start -root KVROOT & | |
○host3で実行 | |
java -jar lib/kvstore.jar makebootconfig -root KVROOT -port 5000 -host host3 -harange 5010,5020 | |
nohup java -jar lib/kvstore.jar start -root KVROOT & | |
○host1で実行 | |
java -jar lib/kvstore.jar runadmin -port 5000 -host host1 load -file OracleNoSQL_configure.txt | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure -name mystore | |
plan deploy-datacenter -name "Tokyo" -rf 3 -wait | |
plan deploy-sn -dc dc1 -host host1 -port 5000 -wait | |
plan deploy-admin -sn sn1 -port 5001 -wait | |
plan deploy-sn -dc dc1 -host host2 -port 5000 -wait | |
plan deploy-sn -dc dc1 -host host3 -port 5000 -wait | |
pool create -name TokyoPool | |
pool join -name TokyoPool -sn sn1 | |
pool join -name TokyoPool -sn sn2 | |
pool join -name TokyoPool -sn sn3 | |
topology create -name topo -pool TokyoPool -partitions 300 | |
plan deploy-topology -name topo -wait | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
○便利コマンド | |
・停止 | |
java -jar lib/kvstore.jar stop -root KVROOT | |
・状態確認 | |
java -jar lib/kvstore.jar ping -port 5000 -host host1 | |
・データ操作用CLI起動 | |
java -jar lib/kvcli.jar -host host1 -port 5000 -store mystore | |
・DB管理用CLI起動 | |
java -jar lib/kvstore.jar runadmin -port 5000 -host host1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment