Hi Everyone,
I have configured the cassandra cluster on single window machine and I am trying to insert the data but somehow I am not able to get replication (Same node with two replication). Here is what I am doing.
CREATE KEYSPACE demo
with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
and strategy_options = [{replication_factor:2}];
use demo;
create column family order with comparator=UTF8Type and key_validation_class=UTF8Type and default_validation_class=UTF8Type and column_metadata=[{column_name: member, validation_class: UTF8Type},{column_name: user, validation_class: UTF8Type, index_type: KEYS},{column_name: instrument, validation_class: UTF8Type},{column_name: price, validation_class: DoubleType}, {column_name: quantity, validation_class: Int32Type},{column_name:datetime, validation_class: DateType}];
set[KEY]['member'] = 'Ansar';
it works fine if I get it from the same client but when I try to get it from different client using different server then it return 0 rows which means there is replication problem.
Can you please help me out, how I can insert the data in both nodes ?
-Ansar
