è²ã
ã¨ãµã¤ããåã£ã¦ã¿ã¦ãã®ã§ãããvar0.8.7ã§ã¯xmlããyamlãã¡ã¤ã«ã«confãã¡ã¤ã«é¡ãå¤ãã£ã¦ããããã§ãããã©ã¡ã¼ã¿ãå¾®å¦ã«å¤ãã£ã¦ããã®ã§å°ãç©ãã¾ãã³ã¡ã³ãå«ã£ã¦è©±ã§ãããã
インフラエンジニアのためのCassandra情報 ノードの追加:So-net Developer Blog:So-netブログ
追å ããå´ã®cassandra.yamlãæ¸ãæããã
# vi /usr/local/cassandra/conf/cassandra.yaml
- -
auto_bootstrap: true
auto_bootstrapãtrueã«ãã¦ããã¨seedsã«æå®ãããã¼ãã¸èªåçã«æ¥ç¶ãéå§ããã
- seeds: "192.168.105.10,192.168.105.11,192.168.105.12"
seedsã«ã¯ã³ã³ãåºåãã§æ¥ç¶å
ã®ãµã¼ããè¨å®ãã¦ããã°OKãå¥ã«ãã¹ã¦ã®ãµã¼ããè¨è¿°ããå¿
è¦ã¯ç¡ãã§ããæ¥ç¶ãããµã¼ããããªã³ã¯ãã¦ãããµã¼ããæ¢ãã«è¡ãããã§ãããã¡ãªã¿ã«yamlãã¡ã¤ã«ãªã®ã§ã¤ã³ãã³ãã«æ³¨æã
listen_address: [èªé¯ã®IP]
ã¯ã©ã¤ã¢ã³ãã®æ¥ç¶å
IPãããã©ã«ãã¯localhostã0.0.0.0ã§ã©ãããã§ãOK.
rpc_address: 0.0.0.0
æ¥ç¶ãããµã¼ããã¹ã¦ã§è¨å®ãçµãã£ããCassandraãåèµ·åãnodetoolã§ãªã³ã¯ãã¦ãããã©ããã確èªã
# nodetool -h localhost ring
ãªã³ã¯ãã¦ããã®ã確èªããããåãµã¼ãã§ã¬ããªã±ã¼ã·ã§ã³ãã¦ãã確èªãã¦ã¿ã¾ãããããµã³ãã«keyspaceãèªã¿è¾¼ãã§ã¿ã¾ãã
# cassandra-cli -h localhost -f /usr/local/cassandra/conf/schema-sample.txt
ä»ã®ãµã¼ãã§cassandra-cliã使ããshow keyspacesã§ã¡ããã¨èªã¿è¾¼ã¾ãã¦ãã°OKã§ãã
ä»å¾ã®ç®æ¨
ãã¥ã¼ãã³ã°æ¹æ³ããã¼ã¿ã¢ãã«ãªã©ããã¨æ»æ´»ç®¡çãnagiosã§ãç¨æãã¦ãããªãã¨å¤åæ»ã¬ãã