In elassandra on insert query with Network Topology Strategy it show's 'no host available'.
cqlsh>CREATE KEYSPACE IF NOT EXISTS twitter WITH replication={ 'class':'NetworkTopologyStrategy', 'dc1':'1' };
cqlsh>CREATE TABLE twitter.user (
name text,
attrs map<text,text>,
PRIMARY KEY (name)
);
cqlsh>INSERT INTO twitter.user (name,attrs) VALUES ('bob',{'email':'[email protected]','firstname':'bob'});
Change data center name of your keyspace to
DC1
Edited
Two replication strategies are available: