Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE KEYSPACE sams WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1': '1', 'DC2': '1'} AND durable_writes = true;
- CREATE TABLE apikey ( appname text, appkey text, PRIMARY KEY ((appname), appkey) );
- nodetool -h cassandra1 status
- Datacenter: DC1
- ===============
- Status=Up/Down
- |/ State=Normal/Leaving/Joining/Moving
- -- Address Load Tokens Owns (effective) Host ID Rack
- UN 100.117.100.107 178.28 KB 256 100.0% 0c5da294-2a86-472d-98ec-857ed5140417 RAC1
- nodetool -h cassandra2 status
- Datacenter: DC2
- ===============
- Status=Up/Down
- |/ State=Normal/Leaving/Joining/Moving
- -- Address Load Tokens Owns Host ID Rack
- UN 100.117.150.55 162.94 KB 256 ? 9f3e49f6-debc-4a9c-ba93-bc65b3851a48 RAC1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement