[ 
https://issues.apache.org/jira/browse/CASSANDRA-9915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14646215#comment-14646215
 ] 

Adam Holmberg commented on CASSANDRA-9915:
------------------------------------------

I would like to clarify a couple of things:

# The title says cqlsh, but you show the error using the Python driver 
directly. Are you just using this to demonstrate an issue you see in cqlsh? If 
this is just a driver question, we can open a ticket on the driver JIRA.
# 'IP' is probably not a valid host. Are you redacting that yourself?
# Can you confirm the driver version (you say "Cassandra 2.5.1", but I assume 
you meant the driver there since there is no such version of the server)? Line 
numbers in this stack trace do not line up with 2.5.1.

If it ends up being driver-specific:
[Driver users mailing 
list|https://groups.google.com/a/lists.datastax.com/forum/#!forum/python-driver-user]
[Driver 
JIRA|https://datastax-oss.atlassian.net/secure/RapidBoard.jspa?rapidView=8&projectKey=PYTHON]

> 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
>          Components: Core
>         Environment: Ubuntu, Cassandra 2.5.1, Python 2.7.3
>            Reporter: Prabir Kr Sarkar
>            Assignee: Stefania
>            Priority: Critical
>              Labels: cqlsh
>             Fix For: 2.1.x
>
>
> 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)

Reply via email to