Cassandra CQL Introduction
Cassandra Query Language (CQL) is a query language for the Cassandra database. CQL shell (cqlsh) is used to interact with Cassandra. You can create keyspaces and tables, insert and query tables and other cassandra related operations.
Starting cqlsh on Linux and Mac OS X
- Go to the Cassandra installation directory.
- Start
cqlsh
:$ bin/cqlsh
- To start
cqlsh
on a different node you need to provide IP address and port:$ bin/cqlsh
10.12
.
35.40
9042
Starting cqlsh on Windows
- Go to the Cassandra installation directory.
- Start
cqlsh
:C:\> cqlsh
cqlsh
prompt appears ascqlsh>
- To start
cqlsh
on a different node you need to provide IP address and port:C:\> cqlsh
10.12
.
35.40
9042
0 comments:
Post a Comment