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

Tyler Hobbs commented on CASSANDRA-6307:
----------------------------------------

With the current code, the driver will automatically connect to every node in 
the cluster.  I'm assuming we don't want that for cqlsh.  One simple fix would 
be to do this:

{code}
from cassandra.policies import WhiteListRoundRobinPolicy
...
cluster = Cluster(..., 
load_balancing_policy=WhiteListRoundRobinPolicy([self.hostname])
{code}

> Switch cqlsh from cassandra-dbapi2 to python-driver
> ---------------------------------------------------
>
>                 Key: CASSANDRA-6307
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6307
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Aleksey Yeschenko
>            Assignee: Mikhail Stepura
>            Priority: Minor
>             Fix For: 2.1 beta2
>
>
> python-driver is hitting 1.0 soon. cassandra-dbapi2 development has stalled.
> It's time to switch cqlsh to native protocol and cassandra-dbapi2, especially 
> now that
> 1. Some CQL3 things are not supported by Thrift transport
> 2. cqlsh no longer has to support CQL2 (dropped in 2.0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to