You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Eric Evans (JIRA)" <ji...@apache.org> on 2010/01/06 21:41:54 UTC
[jira] Created: (CASSANDRA-677) cassandra-cli doesn't allow hyphens
in hostnames
cassandra-cli doesn't allow hyphens in hostnames
------------------------------------------------
Key: CASSANDRA-677
URL: https://issues.apache.org/jira/browse/CASSANDRA-677
Project: Cassandra
Issue Type: Bug
Components: Tools
Affects Versions: 0.9
Environment: Any
Reporter: Eric Evans
Priority: Minor
It's not possible to use a hostname that contains a hyphen with the "connect" command interactively, (the parser does not accept hostnames that contain hyphens).
Note: It is still possible to connect to such hosts by passing it on the command line using -host.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-677) cassandra-cli doesn't allow hyphens
in hostnames
Posted by "Roger Schildmeijer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Schildmeijer updated CASSANDRA-677:
-----------------------------------------
Attachment: CASSANDRA-677.patch
> cassandra-cli doesn't allow hyphens in hostnames
> ------------------------------------------------
>
> Key: CASSANDRA-677
> URL: https://issues.apache.org/jira/browse/CASSANDRA-677
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 0.6
> Environment: Any
> Reporter: Eric Evans
> Priority: Minor
> Attachments: CASSANDRA-677.patch, CASSANDRA-677.patch
>
>
> It's not possible to use a hostname that contains a hyphen with the "connect" command interactively, (the parser does not accept hostnames that contain hyphens).
> Note: It is still possible to connect to such hosts by passing it on the command line using -host.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-677) cassandra-cli doesn't allow hyphens
in hostnames
Posted by "Roger Schildmeijer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Schildmeijer updated CASSANDRA-677:
-----------------------------------------
Attachment: CASSANDRA-677.patch
> cassandra-cli doesn't allow hyphens in hostnames
> ------------------------------------------------
>
> Key: CASSANDRA-677
> URL: https://issues.apache.org/jira/browse/CASSANDRA-677
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 0.9
> Environment: Any
> Reporter: Eric Evans
> Priority: Minor
> Attachments: CASSANDRA-677.patch
>
>
> It's not possible to use a hostname that contains a hyphen with the "connect" command interactively, (the parser does not accept hostnames that contain hyphens).
> Note: It is still possible to connect to such hosts by passing it on the command line using -host.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-677) cassandra-cli doesn't allow
hyphens in hostnames
Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802518#action_12802518 ]
Eric Evans commented on CASSANDRA-677:
--------------------------------------
Sorry Roger, I did some quick testing and this patch seem to have issues as well. It does allow hyphens in hostnames, but only when there are no numbers involved.
cassandra> connect cass-1.lab/9160
line 1:13 mismatched input '1' expecting Identifier
Exception Cannot open null host.
> cassandra-cli doesn't allow hyphens in hostnames
> ------------------------------------------------
>
> Key: CASSANDRA-677
> URL: https://issues.apache.org/jira/browse/CASSANDRA-677
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 0.6
> Environment: Any
> Reporter: Eric Evans
> Priority: Minor
> Attachments: CASSANDRA-677.patch, CASSANDRA-677.patch
>
>
> It's not possible to use a hostname that contains a hyphen with the "connect" command interactively, (the parser does not accept hostnames that contain hyphens).
> Note: It is still possible to connect to such hosts by passing it on the command line using -host.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-677) cassandra-cli doesn't allow
hyphens in hostnames
Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801859#action_12801859 ]
Eric Evans commented on CASSANDRA-677:
--------------------------------------
Thanks Roger. But I'm afraid this won't work for a couple of reasons.
1. Because `Identifier' is used for column family names, it permits the use of hyphens there, which as things currently stand will cause problems (hint: on disk, CFs use hypen delimited filenames).
2. Something other than `Identifier' should be used since that would allow underscores in hostnames, which should not be permitted.
> cassandra-cli doesn't allow hyphens in hostnames
> ------------------------------------------------
>
> Key: CASSANDRA-677
> URL: https://issues.apache.org/jira/browse/CASSANDRA-677
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 0.9
> Environment: Any
> Reporter: Eric Evans
> Priority: Minor
> Attachments: CASSANDRA-677.patch
>
>
> It's not possible to use a hostname that contains a hyphen with the "connect" command interactively, (the parser does not accept hostnames that contain hyphens).
> Note: It is still possible to connect to such hosts by passing it on the command line using -host.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.