Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A32C175F6 for ; Fri, 27 Mar 2015 21:11:54 +0000 (UTC) Received: (qmail 81888 invoked by uid 500); 27 Mar 2015 21:11:54 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 81853 invoked by uid 500); 27 Mar 2015 21:11:53 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 81841 invoked by uid 99); 27 Mar 2015 21:11:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 21:11:53 +0000 Date: Fri, 27 Mar 2015 21:11:53 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6663) Connecting to a Raspberry PI Cassandra Cluster crashes the node being connected to MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14384677#comment-14384677 ] Tyler Hobbs commented on CASSANDRA-6663: ---------------------------------------- [~jesperdj] we don't upgrade libraries in bugfix releases, but I've opened CASSANDRA-9063 to look into upgrading snappy for the 3.0 release. Thanks for the info! > 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 > Attachments: Python Client Log.txt, hs_err_pid6327.log > > > 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* > {noformat} > >>> from cassandra.cluster import Cluster > >>> cluster = Cluster(['192.168.200.151'], compression = None) > >>> session = cluster.connect() > {noformat} > *Error Log* > {noformat} > Traceback (most recent call last): > File "", line 1, in > 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',)) > {noformat} > *A Dump of the "cluster" class attributes* > {noformat} > >>> pprint(vars(cluster)) > {'_core_connections_per_host': {0: 2, 1: 1}, > '_is_setup': True, > '_is_shutdown': True, > '_listener_lock': , > '_listeners': set([]), > '_lock': <_RLock owner=None count=0>, > '_max_connections_per_host': {0: 8, 1: 2}, > '_max_requests_per_connection': {0: 100, 1: 100}, > '_min_requests_per_connection': {0: 5, 1: 5}, > '_prepared_statements': , > 'compression': None, > 'contact_points': ['192.168.200.151'], > 'control_connection': , > 'control_connection_timeout': 2.0, > 'cql_version': None, > 'executor': , > 'load_balancing_policy': , > 'max_schema_agreement_wait': 10, > 'metadata': , > 'metrics_enabled': False, > 'port': 9042, > 'scheduler': , > 'sessions': <_weakrefset.WeakSet object at 0x106148750>, > 'sockopts': None, > 'ssl_options': None} > >>> > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)