Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 193AF11ED1 for ; Mon, 22 Sep 2014 15:05:42 +0000 (UTC) Received: (qmail 92085 invoked by uid 500); 22 Sep 2014 15:05:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 92054 invoked by uid 500); 22 Sep 2014 15:05:38 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 92044 invoked by uid 99); 22 Sep 2014 15:05:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 15:05:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.holmberg@datastax.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 15:05:35 +0000 Received: by mail-lb0-f176.google.com with SMTP id w7so2107972lbi.35 for ; Mon, 22 Sep 2014 08:05:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=DsNgE7Wo5TgHBKf9e+Mfc1FiPygw+D/oK3c62rUYqMw=; b=T0Nv0wN+Kh9aHtbBHq+xVUeoYrO/U+DzTNtmis0ClQrU4yiY08xTJ8SnG39c7Dpe6S oJb/xoU2DUqGRkru4Vnb/XzZMOMDLkCQ6qcOgewVFXZgUik8ePKR5RJduTUyblMQHQXk M8vJeOCqfcoj33k+mDSr7M1aTxjM4Vr5WMVhRUu3UpEyImmTxE5RKoim7G5StJ/haRJO BzAcqMbuN75/s4OLlg7LcWnj5iymq4xDw+Xq5Eoa9OF7gcYfoz3N8re8Sy/mmrCf7qSD P5PVOvJjq5IqtSofvVujm/rJOaiYGleODjhEpi3PjAuh7MnhX17y9EtV32YCFjM8qFmC LOzQ== X-Gm-Message-State: ALoCoQlmR/PhN9dAw3zVPD8mUWZMlB/xTFvGNCAPUg391ngewBo1AVYKgv4VFsprXDuDO3kJsIjH MIME-Version: 1.0 X-Received: by 10.112.13.10 with SMTP id d10mr25081729lbc.10.1411398312801; Mon, 22 Sep 2014 08:05:12 -0700 (PDT) Received: by 10.114.99.69 with HTTP; Mon, 22 Sep 2014 08:05:12 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Sep 2014 10:05:12 -0500 Message-ID: Subject: Re: cassandra 2.1.0 unable to use cqlsh From: Adam Holmberg To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11c3a11a124a120503a8c782 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3a11a124a120503a8c782 Content-Type: text/plain; charset=UTF-8 cqlsh in Cassandra 2.1.0 uses the DataStax python driver. The "cassandra.metadata" module is provided by this package. By default it uses the driver from an archive included in the Cassandra distribution (.../lib/cassandra-driver-internal-only-2.1.0.zip). See /usr/local/apache-cassandra-2.1.0/bin/cqlsh for how everything gets setup -- it's possible your wrapper or environment are not playing well with that. Also note that "9160" will not apply anymore since this driver uses the native protocol (9042). Adam On Sun, Sep 21, 2014 at 7:53 PM, Tim Dunphy wrote: > Hey all, > > I've just upgraded to the latest cassandra on my site with version 2.1.0. > > But now when I run the command I am getting the following error: > > [root@beta-new:/usr/local] #cqlsh > Traceback (most recent call last): > File "/etc/alternatives/cassandrahome/bin/cqlsh-old", line 113, in > > from cqlshlib import cqlhandling, cql3handling, pylexotron > File > "/usr/local/apache-cassandra-2.1.0/bin/../pylib/cqlshlib/cql3handling.py", > line 18, in > from cassandra.metadata import maybe_escape_name > ImportError: No module named cassandra.metadata > > Just to clarify some of the above output, all my 'cqlsh' command does is > automatically fill in some values I'd like to use as defaults and then > invoke the real command which I've named 'cqlsh-old'. Just a quirk of my > setup that's always allowed cqlsh to be invoked without issue across > multiple upgrades. > > [root@beta-new:/usr/local] #cat /etc/alternatives/cassandrahome/bin/cqlsh > #!/bin/sh > /etc/alternatives/cassandrahome/bin/cqlsh-old beta-new.mydomain.com 9160 > --cqlversion="3.0.0" > > I'd appreciate any advice you could spare on how to get around this error! > > Thanks > Tim > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > --001a11c3a11a124a120503a8c782 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
cqlsh in Cassandra 2.1.0 uses the DataStax python driver. = The "cassandra.metadata" module is provided by this package. By d= efault it uses the driver from an archive included in the Cassandra distrib= ution (.../lib/cassandra-driver-internal-only-2.1.0.zip).=C2=A0

See=C2=A0/usr/local/apache-cassandra-2.1.0/bin/cqlsh for h= ow everything gets setup -- it's possible your wrapper or environment a= re not playing well with that.

Also note= that "9160" will not apply anymore since this driver uses the na= tive protocol (9042).

Adam

On Sun, Sep 21, 2014 at 7:53 PM, Tim Dunphy <bluethundr@gmail.com= > wrote:
Hey a= ll,

=C2=A0I've just upgraded to the latest cassandra= on my site with version 2.1.0.

But now when I run= the command I am getting the following error:

[root@beta-new:/usr/local] #cqlsh
Traceback (most recent call l= ast):
=C2=A0 File "/etc/alternatives/cassandrahome/bin/cqlsh= -old", line 113, in <module>
=C2=A0 =C2=A0 from cqlshl= ib import cqlhandling, cql3handling, pylexotron
=C2=A0 File "= ;/usr/local/apache-cassandra-2.1.0/bin/../pylib/cqlshlib/cql3handling.py&qu= ot;, line 18, in <module>
=C2=A0 =C2=A0 from cassandra.meta= data import maybe_escape_name
ImportError: No module named cassan= dra.metadata

Just to clarify some of the above out= put, all my 'cqlsh' command does is automatically fill in some valu= es I'd like to use as defaults and then invoke the real command which I= 've named 'cqlsh-old'. Just a quirk of my setup that's alwa= ys allowed cqlsh to be invoked without issue across multiple upgrades.=C2= =A0

[root@beta-new:/usr/local] #cat /etc/alte= rnatives/cassandrahome/bin/cqlsh
#!/bin/sh
/etc/alterna= tives/cassandrahome/bin/cqlsh-old beta-new.mydomain.com 9160 --cqlversion=3D"3.0.0= "

I'd appreciate any advice you =C2= =A0could spare on how to get around this error!

Th= anks
Tim

--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys= F186197B


--001a11c3a11a124a120503a8c782--