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
• 24,570 points
700 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
• 55,020 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
• 36,850 points
321 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,450 points
4,145 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
• 36,850 points
315 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,950 points
5,834 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,950 points
872 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
36,666 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,320 points
2,185 views
0 votes
1 answer