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 5BFDC6C2E for ; Fri, 29 Jul 2011 09:29:40 +0000 (UTC) Received: (qmail 94515 invoked by uid 500); 29 Jul 2011 09:29:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 94153 invoked by uid 500); 29 Jul 2011 09:29:26 -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 94144 invoked by uid 99); 29 Jul 2011 09:29:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 09:29:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sorin.julean@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 09:29:13 +0000 Received: by fxe6 with SMTP id 6so2401487fxe.31 for ; Fri, 29 Jul 2011 02:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=M4VA9HIZPOm2/NXSQgcP76zdf6MYhBiA319AzeSrJ5o=; b=bMa06pYbcda5EJCaZclt0OWGOqeDOqgiK9kMCA094F54c6JHDnJvLN9Y1xAeO7nleK iZbaQt0++SRmp4SeFuMNmN5ItH3YzSTscupXW+O1cetEVzqsjMyfSKqUlwWsOFwG2RMn Eo/Q99VKVzZsOkVFbvUKQShbDHAjGpjBzwen0= MIME-Version: 1.0 Received: by 10.204.157.142 with SMTP id b14mr338431bkx.120.1311931732720; Fri, 29 Jul 2011 02:28:52 -0700 (PDT) Received: by 10.204.115.4 with HTTP; Fri, 29 Jul 2011 02:28:52 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Jul 2011 10:28:52 +0100 Message-ID: Subject: Re: Cassandra auto keyspace operation using script From: Sorin Julean To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0015175d03cce5fcef04a931e8f9 X-Virus-Checked: Checked by ClamAV on apache.org --0015175d03cce5fcef04a931e8f9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey, Try: echo *-e* "connnet localhost/9160;* \n*show keyspace*;*" | bin/cassandra-cli Regards, Sorin On Fri, Jul 29, 2011 at 9:54 AM, =E7=A5=9D=E6=B5=B7=E9=80=9A wrote: > In our Cassandra test for YCSB benchmark, we want to create column family > and drop keyspace with script automatically. > But I fount that in our script. /bin/cassandra-cli; connect localhost/916= 0; > show keyspace; can not execute. > Using the "" does not work. > and Using echo "connnet localhost/9160; show keyspace "=EF=BD=9Cbin/cassa= ndra-cli > It doesn't work too. > > haitongz --0015175d03cce5fcef04a931e8f9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey,

=C2=A0Try: echo -e "connnet localhost/91= 60; \nshow keyspace;" | bin/cassandra-= cli

Regards,
Sorin

On Fri, Jul 29, 201= 1 at 9:54 AM, =E7=A5=9D=E6=B5=B7=E9=80=9A <zhuhaitong@gmail.com> wrote:
=
In our Cassandra test for YCSB benchmark, we want to create colu= mn family and drop keyspace with script=C2=A0automatically.
But I fount that in our script. /bin/cassandra-cli; connect localhost/9160;= show keyspace;=C2=A0=C2=A0can not execute.
Using the ""= ; does not work.
and Using echo "connnet localhost/9160; sho= w keyspace "=EF=BD=9Cbin/cassandra-cli
It doesn't work too.

haitongz

--0015175d03cce5fcef04a931e8f9--