SyntaxException: line 1:67 no viable alternative at input ',' (... University with replication={'class':[SimpleStrategy],...)

0 votes

I am trying to create Keyspace in cassandra, but I got the below error.

$ Create keyspace University with replication={'class':SimpleStrategy,'replication_factor': 3};
SyntaxException: line 1:67 no viable alternative at input ',' (... University with replication={'class':[SimpleStrategy],...)

How can I solve this?

Thank You

Apr 1 in Big Data Hadoop by akhtar
• 11,270 points
155 views

1 answer to this question.

0 votes

Hi@akhtar,

It is showing syntax error in your command. Use the below given command to create keyspace in cassandra.

$ Create keyspace University with replication = {'class':'SimpleStrategy','replication_factor': 3};

Hope it will solve your error.

Thank You

answered Apr 1 by MD
• 24,500 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop: Error: slave: bash: line 0: cd: /opt/hadoop-1.1.0/libexec/..: No such file or directory

Hi,   In this case, it is searching ...READ MORE

answered Aug 7, 2019 in Big Data Hadoop by Gitika
• 29,690 points
195 views
0 votes
1 answer

Best way of starting & stopping the Hadoop daemons with command line

First way is to use start-all.sh & ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,380 points
3,324 views
0 votes
1 answer

How to Create a table with region replication in Hbase?

Hi, Region replication is a per-table property. All ...READ MORE

answered May 31, 2019 in Big Data Hadoop by Gitika
• 29,690 points
214 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,116 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
732 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,405 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,907 views
0 votes
3 answers