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, 2020 in Big Data Hadoop by akhtar
• 38,230 points
889 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, 2020 by MD
• 95,440 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,210 points
661 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,210 points
5,887 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
• 11,380 points
10,604 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
• 11,380 points
2,209 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,785 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,390 points
4,286 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP