Cassandra Default build Keyspace time, it is necessary to develop a topology strategy, small data directly with a single data center Simplestrategy, the online data are not specifically how to configure the multi-data center, here simply Paste
Cassandra.yaml inside Modify Endpoint_snitch
The specific Snitch method has
Simplesnitch
Default, Single data center
Gossipingpropertyfilesnitch
Officially recommended for use in production environments, the rack and DC names of this node are stored in cassandra-rackdc.properties and will be propagated to all nodes by gossip this peer-to-peer protocol if Cassandra- Topology.properties file exists, Cassandra will combine the results of the two properties files, if there is a configuration of the same node in the two properties file, the configuration of the cassandra-rackdc.properties shall prevail.
Propertyfilesnitch
DC and rack are explicitly defined in the Cassandra-topology.properties file
When building a keyspace, this designation
" Test_keyspace " With REPLICATION = {'class'networktopologystrategy' DC1'3'dc2'2};
It means using the network multi-data center strategy, there are two data centers, DC1 replica factor for 3,DC2 replica factor for 2
Refer to Address http://www.datastax.com/documentation/cql/3.1/cql/cql_reference/create_keyspace_r.html
Cassandra Multi-Datacenter configuration