[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-26 Thread Pavel Yaskevich (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13283972#comment-13283972
 ] 

Pavel Yaskevich commented on CASSANDRA-3865:


+1

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.1.2

 Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-26 Thread Dave Brosius (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284005#comment-13284005
 ] 

Dave Brosius commented on CASSANDRA-3865:
-

committed to branch cassandra-1.1 as commit 
2d72056c14f9b97e67dd94e48691f3ec1a88d9d6

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.1.2

 Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-26 Thread Pavel Yaskevich (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284010#comment-13284010
 ] 

Pavel Yaskevich commented on CASSANDRA-3865:


You also need to add line about that into CHANGES.txt and up-merge it into 
trunk.

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.1.2

 Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-26 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284058#comment-13284058
 ] 

Hudson commented on CASSANDRA-3865:
---

Integrated in Cassandra #1453 (See 
[https://builds.apache.org/job/Cassandra/1453/])
add missing CHANGES.txt entry for CASSANDRA-3865 (Revision 
d16c4468e86fbdb82ed981ef6c6ced6f275e4f21)

 Result = FAILURE
xedin : 
Files : 
* CHANGES.txt


 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.1.2

 Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-26 Thread Pavel Yaskevich (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284063#comment-13284063
 ] 

Pavel Yaskevich commented on CASSANDRA-3865:


I have fixed small bug and committed to 1.1 and up-merged into trunk.

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.1.2

 Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-26 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13284086#comment-13284086
 ] 

Hudson commented on CASSANDRA-3865:
---

Integrated in Cassandra #1455 (See 
[https://builds.apache.org/job/Cassandra/1455/])
fixes small CLI bug introduced by CASSANDRA-3865 (Revision 
46722cc69e47e9b4bdcc5c28f426cf7f0a6a3a7d)

 Result = FAILURE
xedin : 
Files : 
* src/java/org/apache/cassandra/cli/Cli.g


 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.1.2

 Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-24 Thread Pavel Yaskevich (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13282501#comment-13282501
 ] 

Pavel Yaskevich commented on CASSANDRA-3865:


I think that Dave's patch is one part of it, another would be to change 
Command not found to Error in the command and add information from 
RecognitionException (which NoViableAltException extends) to were recognition 
error have actually happend.

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.0.11, 1.1.1

 Attachments: parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-23 Thread Eric Lubow (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13281691#comment-13281691
 ] 

Eric Lubow commented on CASSANDRA-3865:
---

This doesn't appear to be fixed.

Welcome to Cassandra CLI version 1.0.8

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@linkcurrent] create column family social_poll_deltas
...   with column_type = 'Standard'
...   and comparator = 
'CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.LongType)'
...   and default_validation_class = 'UUIDType'
...   and key_validation_class = 'UUIDType'
...   and rows_cached = 0.0
...   and row_cache_save_period = 0
...   and row_cache_keys_to_save = 2147483647
...   and keys_cached = 20.0
...   and key_cache_save_period = 14400
...   and read_repair_chance = .25
...   and gc_grace = 864000
...   and min_compaction_threshold = 4
...   and max_compaction_threshold = 32
...   and replicate_on_write = true
...   and row_cache_provider = 'SerializingCacheProvider'
...   and compaction_strategy = 
'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'
...   and comment = 'Social poll totals and deltas ';
Command not found: `create column family social_poll_deltas with column_type = 
'Standard' and comparator = 
'CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.LongType)'
 and default_validation_class = 'UUIDType' and key_validation_class = 
'UUIDType' and rows_cached = 0.0 and row_cache_save_period = 0 and 
row_cache_keys_to_save = 2147483647 and keys_cached = 20.0 and 
key_cache_save_period = 14400 and read_repair_chance = .25 and gc_grace = 
864000 and min_compaction_threshold = 4 and max_compaction_threshold = 32 and 
replicate_on_write = true and row_cache_provider = 'SerializingCacheProvider' 
and compaction_strategy = 
'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy' and comment = 
'Social poll totals and deltas ';`. Type 'help;' or '?' for help.

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Priority: Trivial
  Labels: cassandra-cli

 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-23 Thread Eric Lubow (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13281720#comment-13281720
 ] 

Eric Lubow commented on CASSANDRA-3865:
---

As an update, the problem with this (after MUCH trial and error), was that the 
read_repair_chance was .25 instead of 0.25.

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Yuki Morishita
Priority: Trivial
  Labels: cassandra-cli

 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-23 Thread Yuki Morishita (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13282140#comment-13282140
 ] 

Yuki Morishita commented on CASSANDRA-3865:
---

That't one way to fix parsing problem, but in my understanding, what Eric is 
saying is that it's hard to find the error from the message above.
If we can display more user friendly message like Parse error: 
read_repair_chance = .25, instead of saying Command not found, user can 
easily fix what's wrong.

I'm fine with current Double definition if we can fix the error message. What 
do you think, Pavel?

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.0.11, 1.1.1

 Attachments: parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-05-23 Thread Eric Lubow (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13282150#comment-13282150
 ] 

Eric Lubow commented on CASSANDRA-3865:
---

As Yuki said, I'd be more interested in the fix being a complaint of a syntax 
error (or parse error) when attempting to create a column family as opposed to 
command not found (which is clearly ambiguous).  This way I (as a user) know 
that the CLI is aware that I am attempting to create a column family and it's 
failing.  Now not only do I know that I am on the right track with the command 
I'm trying to execute, but then I know roughly where the problem is. Fixing the 
parse error is just a band-aid.

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Dave Brosius
Priority: Trivial
  Labels: cassandra-cli
 Fix For: 1.0.11, 1.1.1

 Attachments: parse_doubles_better.txt


 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

2012-02-07 Thread Yuki Morishita (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13202428#comment-13202428
 ] 

Yuki Morishita commented on CASSANDRA-3865:
---

This is fixed in 1.0.7 (CASSANDRA-3714).

 Cassandra-cli returns 'command not found' instead of syntax error
 -

 Key: CASSANDRA-3865
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: DSE 1.0.5
Reporter: Eric Lubow
Assignee: Yuki Morishita
Priority: Trivial
  Labels: cassandra-cli

 When creating a column family from the output of 'show schema' with an index, 
 there is a trailing comma after index_type: 0,  The return from this is a 
 'command not found'  This is misleading because the command is found, there 
 is just a syntax error.
 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira