ConfigurationException: replication_factor is an option for SimpleStrategy, not NetworkTopologyStrategy

0 votes

I created one keyspace in cassandra, now I want to alter strategy property from SimpleStrategy to NetworkTopologyStrategy. But I am getting the below given error.

$ create keyspace University with replication = {'class' :'NetworkTopologyStrategy','replication_factor':1};
ConfigurationException: replication_factor is an option for SimpleStrategy, not NetworkTopologyStrategy

Thank You

Apr 1 in Big Data Hadoop by akhtar
• 10,580 points
23 views

1 answer to this question.

0 votes

Hi@akhtar,

In cassandra there are two types of Strategy available. One is SimpleStrategy and another one is NetworkTopologyStrategy.

In SimpleStrategy, replication_factor field is available. But, in NetworkTopologyStrategy, DataCenter field in available.

Use the bellow given command, it will work.

$ create keyspace University with replication = {'class' :'NetworkTopologyStrategy','DataCenter1':1};

Thank You

answered Apr 1 by MD
• 23,050 points

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Hadoop MapReduce wordcount "type job is not applicable for the arguments" error

The combiner class is not required in ...READ MORE

answered Dec 19, 2018 in Big Data Hadoop by Omkar
• 69,060 points
72 views
–1 vote
1 answer

Why is Hive not good for OLTP?

Apache Hive is mainly used for batch processing i.e. ...READ MORE

answered Jan 7, 2019 in Big Data Hadoop by Omkar
• 69,060 points
1,411 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
5,087 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
724 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
30,124 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
1,899 views
0 votes
1 answer