[
https://issues.apache.org/jira/browse/CASSANDRA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mingfai Ma updated CASSANDRA-1562:
----------------------------------
Description:
For the nightly build, the "create keyspace" command from the help doesn't
work.
{code}
create keyspace foo with replication_factor = 1 and placement_strategy =
'org.apache.cassandra.locator.SimpleStrategy'
{code}
replication factor is changed to 1 to allow simple local testing. The command
results as:
{quote}
line 1:73 mismatched input ''org.apache.cassandra.locator.SimpleStrategy''
expecting IntegerLiteral
816169c8-ccc6-11df-af0c-6d517e313560
{quote}
"describe keyspace foo" shows there is no placement strategy.
If the order of attributes are swapped, i.e.
{code}
create keyspace foo with placement_strategy =
'org.apache.cassandra.locator.SimpleStrategy' and replication_factor = 1
{code}
there won't be error message but the keyspace still won't be created with any
placement strategy.
was:
For the nightly build, the "create keyspace" command from the help doesn't
work.
{code}
create keyspace foo with replication_factor = 1 and placement_strategy =
'org.apache.cassandra.locator.SimpleStrategy'
{code}
replication factor is changed to 1 to allow simple local testing. The command
results as:
{quote}
line 1:73 mismatched input ''org.apache.cassandra.locator.SimpleStrategy''
expecting IntegerLiteral
816169c8-ccc6-11df-af0c-6d517e313560
{quote}
"describe keyspace foo" shows there is no placement strategy.
It will work if the order of the two attribute pairs is swapped:
{code}
create keyspace foo with placement_strategy =
'org.apache.cassandra.locator.SimpleStrategy' and replication_factor = 1
{code}
I suggest to fix the example in Help first, so any learner at least can create
a keyspace properly.
Fix Version/s: (was: 0.7.1)
nm. swapping the order of attributes won't work. It results as no error but
keyspace won't be created with any placement strategy. Looks like the command
line client can't be used to create KS for now.
> Create keyspace example in the help menu of the command line client doesn't
> work
> --------------------------------------------------------------------------------
>
> Key: CASSANDRA-1562
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1562
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 0.7 beta 1
> Reporter: Mingfai Ma
> Priority: Minor
>
> For the nightly build, the "create keyspace" command from the help doesn't
> work.
> {code}
> create keyspace foo with replication_factor = 1 and placement_strategy =
> 'org.apache.cassandra.locator.SimpleStrategy'
> {code}
> replication factor is changed to 1 to allow simple local testing. The command
> results as:
> {quote}
> line 1:73 mismatched input ''org.apache.cassandra.locator.SimpleStrategy''
> expecting IntegerLiteral
> 816169c8-ccc6-11df-af0c-6d517e313560
> {quote}
> "describe keyspace foo" shows there is no placement strategy.
> If the order of attributes are swapped, i.e.
> {code}
> create keyspace foo with placement_strategy =
> 'org.apache.cassandra.locator.SimpleStrategy' and replication_factor = 1
> {code}
> there won't be error message but the keyspace still won't be created with any
> placement strategy.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.