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 1329F175C for ; Tue, 19 Apr 2011 14:03:25 +0000 (UTC) Received: (qmail 13822 invoked by uid 500); 19 Apr 2011 02:56:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 13799 invoked by uid 500); 19 Apr 2011 02:56:44 -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 13791 invoked by uid 99); 19 Apr 2011 02:56:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 02:56:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 02:56:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0ED7DA8531 for ; Tue, 19 Apr 2011 02:56:06 +0000 (UTC) Date: Tue, 19 Apr 2011 02:56:06 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <437579213.66235.1303181766057.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <206156854.65835.1303167185751.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2501) Error running cqlsh from .tar file -- global name 'SchemaDisagreementException' is not defined 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-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021388#comment-13021388 ] Jonathan Ellis commented on CASSANDRA-2501: ------------------------------------------- Good, that's what I thought. Cassandra always logs a stacktrace for "internal application error," can you grab that from /var/log/cassandra? (if i were to take a wild-ass guess I would say it's not handling USE correctly when given a keyspace that doesn't exist.) > Error running cqlsh from .tar file -- global name 'SchemaDisagreementException' is not defined > ---------------------------------------------------------------------------------------------- > > Key: CASSANDRA-2501 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2501 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.8 > Environment: Running on 3-node Centos 5.5. The cql package was installed with Python 2.6 and prior to installation, I downloaded and installed thrift05-0.5.0. > Reporter: Cathy Daw > Assignee: Jonathan Ellis > Attachments: 2501.txt > > > *Error when running cqlsh* > {code} > [cassandra@cdaw-qa1 cql-1.0.0]$ cqlsh cdaw-qa1 > Traceback (most recent call last): > File "/usr/bin/cqlsh", line 212, in > password=options.password) > File "/usr/bin/cqlsh", line 55, in __init__ > self.conn = cql.connect(hostname, port, user=username, password=password) > File "/usr/lib/python2.6/site-packages/cql/__init__.py", line 51, in connect > return connection.Connection(host, port, keyspace, user, password) > File "/usr/lib/python2.6/site-packages/cql/connection.py", line 53, in __init__ > c.execute('USE %s;' % keyspace) > File "/usr/lib/python2.6/site-packages/cql/cursor.py", line 126, in execute > except SchemaDisagreementException, sde: > NameError: global name 'SchemaDisagreementException' is not defined > {code} > *Build* > * Install the cassandra binary from the nightly build > wget https://builds.apache.org/hudson/job/Cassandra/lastSuccessfulBuild/artifact/cassandra/build/apache-cassandra-2011-04-18_11-02-29-bin.tar.gz > * Install cql from .tar file on nightly build > wget https://builds.apache.org/hudson/job/Cassandra/lastSuccessfulBuild/artifact/cassandra/build/cql-1.0.0.tar.gz > *CQL Install Output* > {code} > [cassandra@cdaw-qa1 cql-1.0.0]$ sudo python2.6 ./setup.py install > [sudo] password for cassandra: > running install > running build > running build_py > running build_scripts > creating build/scripts-2.6 > copying and adjusting cqlsh -> build/scripts-2.6 > changing mode of build/scripts-2.6/cqlsh from 644 to 755 > running install_lib > creating /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/results.py -> /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/marshal.py -> /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/connection.py -> /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/cursor.py -> /usr/lib/python2.6/site-packages/cql > creating /usr/lib/python2.6/site-packages/cql/cassandra > copying build/lib/cql/cassandra/__init__.py -> /usr/lib/python2.6/site-packages/cql/cassandra > copying build/lib/cql/cassandra/Cassandra.py -> /usr/lib/python2.6/site-packages/cql/cassandra > copying build/lib/cql/cassandra/constants.py -> /usr/lib/python2.6/site-packages/cql/cassandra > copying build/lib/cql/cassandra/ttypes.py -> /usr/lib/python2.6/site-packages/cql/cassandra > copying build/lib/cql/decoders.py -> /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/__init__.py -> /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/errors.py -> /usr/lib/python2.6/site-packages/cql > copying build/lib/cql/connection_pool.py -> /usr/lib/python2.6/site-packages/cql > byte-compiling /usr/lib/python2.6/site-packages/cql/results.py to results.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/marshal.py to marshal.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/connection.py to connection.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/cursor.py to cursor.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/__init__.py to __init__.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/Cassandra.py to Cassandra.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/constants.py to constants.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/ttypes.py to ttypes.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/decoders.py to decoders.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/__init__.py to __init__.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/errors.py to errors.pyc > byte-compiling /usr/lib/python2.6/site-packages/cql/connection_pool.py to connection_pool.pyc > running install_scripts > copying build/scripts-2.6/cqlsh -> /usr/bin > changing mode of /usr/bin/cqlsh to 755 > running install_egg_info > Writing /usr/lib/python2.6/site-packages/cql-1.0.0-py2.6.egg-info > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira