cassandra 之 集群部署
其实关于部署没啥好说的,修改config/cassandra.yaml以下几个地方就可以了
cluster_name: 'cluster_cassandra' data_file_directories: - /opt/db/apache-cassandra-2.2.3/data commitlog_directory: /opt/db/apache-cassandra-2.2.3/commitlog saved_caches_directory: /opt/db/apache-cassandra-2.2.3/saved_caches seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: # Ex: "<ip1>,<ip2>,<ip3>" - seeds: "172.16.163.131" #listen_address、rpc_address在各个机子上,改为本地主机IP listen_address: 172.16.163.131 rpc_address: 172.16.163.131