You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Adam Holmberg (JIRA)" <ji...@apache.org> on 2015/11/25 17:32:11 UTC
[jira] [Commented] (CASSANDRA-9915) IndexError('list index out of
range') when trying to connect to Cassandra cluster with cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-9915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15027060#comment-15027060 ]
Adam Holmberg commented on CASSANDRA-9915:
------------------------------------------
Still unclear what was leading to this metadata condition, but the updated driver (now in both 2.2 and 3.0) handles this without blowing up. I think we can close this.
> IndexError('list index out of range') when trying to connect to Cassandra cluster with cqlsh
> --------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-9915
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9915
> Project: Cassandra
> Issue Type: Bug
> Environment: Ubuntu, Cassandra 2.5.1, Python 2.7.3
> Reporter: Prabir Kr Sarkar
> Assignee: Adam Holmberg
> Priority: Minor
> Labels: cqlsh
> Fix For: 2.1.x
>
> Attachments: schema_columnfamilies.xls
>
>
> Cassandra by default uses a Python driver to connect
> {code}
> >>> cluster = Cluster(['IP'], protocol_version=3)
> >>> session = cluster.connect()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 839, in connect
> self.control_connection.connect()
> File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 2075, in connect
> self._set_new_connection(self._reconnect_internal())
> File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 2110, in _reconnect_internal
> raise NoHostAvailable("Unable to connect to any servers", errors)
> cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', {'IP': IndexError('list index out of range',)})
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)