You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2014/02/06 04:20:09 UTC
[jira] [Commented] (CASSANDRA-6663) Connecting to a Raspberry PI
Cassandra Cluster crashes the node being connected to
[ https://issues.apache.org/jira/browse/CASSANDRA-6663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13892974#comment-13892974 ]
Brandon Williams commented on CASSANDRA-6663:
---------------------------------------------
We're going to need to see a server-side error to get anywhere here.
> Connecting to a Raspberry PI Cassandra Cluster crashes the node being connected to
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-6663
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6663
> Project: Cassandra
> Issue Type: Bug
> Components: Drivers (now out of tree)
> Environment: 4x node Raspberry PI cluster
> Macbook running Idle 2.7
> Reporter: ian mccrae
>
> I have a working 4x node Raspberry Pi cluster and
> # DevCenter happily connects to this (...which has an option to turn Snappy compression off)
> # ...however the Python Driver fails to connect and crashes the node being connected to with the errors in the error-log below.
> There appears to be a problem with Snappy compression (not supported on the Raspberry Pi). So I also tried "compression = None" with the same result.
> How might I fix this?
> *Python Code*
> >>> from cassandra.cluster import Cluster
> >>> cluster = Cluster(['192.168.200.151'], compression = None)
> >>> session = cluster.connect()
> *Error Log*
> {quote}
> Traceback (most recent call last):
> File "<pyshell#58>", line 1, in <module>
> session = cluster.connect()
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cassandra/cluster.py", line 471, in connect
> self.control_connection.connect()
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cassandra/cluster.py", line 1351, in connect
> self._set_new_connection(self._reconnect_internal())
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cassandra/cluster.py", line 1386, in _reconnect_internal
> raise NoHostAvailable("Unable to connect to any servers", errors)
> NoHostAvailable: ('Unable to connect to any servers', {'192.168.200.151': ConnectionShutdown('Connection to 192.168.200.151 is closed',))
> {quote}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)