Connecting to Cassandra client from shell script

2,539 views
Skip to first unread message

Srini

unread,
Sep 5, 2012, 6:54:38 AM9/5/12
to hector...@googlegroups.com
Hi,

Is it possible to execute the Cassandra Client queries from a shell script like the way we do for SQL PLUS ?

Benoit Perroud

unread,
Sep 5, 2012, 7:02:43 AM9/5/12
to hector...@googlegroups.com
What you are looking for sounds like CQLSH :
http://www.datastax.com/docs/1.1/dml/using_cql



2012/9/5 Srini <lsvar...@gmail.com>:

Srini

unread,
Sep 5, 2012, 10:10:47 AM9/5/12
to hector...@googlegroups.com
Hi,

I am getting below message.

bash-3.2$ ksh cqlsh
No appropriate python interpreter found.
bash-3.2$

Also, i want to connect from another shell script say a.sh and execute something like below

use system;
set LocationInfo[utf8('L')][utf8('Test Cluster')]=utf8('<Test>');
exit;



Nate McCall

unread,
Sep 5, 2012, 10:33:59 AM9/5/12
to hector...@googlegroups.com
Take a look at the following overview/installation instructions for CQL:
http://www.datastax.com/docs/1.1/dml/using_cql
Reply all
Reply to author
Forward
0 new messages