$ docker -version docker version Client version: 1.3.3 Client API version: 1.15 Go version (client): go1.3.2 Git commit (client): 54d900a OS/Arch (client): linux/amd64 Server version: 1.3.3 Server API version: 1.15 Go version (server): go1.3.2 Git commit (server): 54d900a
$ cassandra-cli Connected to: "Test Cluster" on 127.0.0.1/9160 Welcome to Cassandra CLI version 2.0.10
The CLI is deprecated and will be removed in Cassandra 3.0. Consider migrating to cqlsh. CQL is fully backwards compatible with Thrift data; see http://www.datastax.com/dev/blog/thrift-to-cql3
Type 'help;' or '?'forhelp. Type 'quit;' or 'exit;' to quit.
$ cqlsh Connected to Test Cluster at localhost:9160. [cqlsh 4.1.1 | Cassandra 2.0.10 | CQL spec 3.1.1 | Thrift protocol 19.39.0] Use HELP forhelp. cqlsh>
キースペースを確認します。
cqlsh> DESCRIBE keyspaces;
system system_traces
CQLにはCREATE TABLEで定義できるテーブルがあります。
cqlsh> DESCRIBE tables;
Keyspace system --------------- IndexInfo hints range_xfers sstable_activity NodeIdInfo local schema_columnfamilies batchlog paxos schema_columns compaction_history peer_events schema_keyspaces compactions_in_progress peers schema_triggers