cassandra的命令: 
connect <hostname>/<port> (<username> '<password>')?;    Connect to thrift service. 
use <keyspace> [<username> 'password'];                             Switch to a keyspace. 
describe keyspace (<keyspacename>)?;                                  Describe keyspace. 
exit;

quit;

describe cluster;                                                                   Display information about cluster. 
show cluster name;                                                               Display cluster name. 
show keyspaces;                                                                   Show list of keyspaces. 
show api version;                                                Show server API version. 
create keyspace <keyspace> [with <att1>=<value1> [and <att2>=<value2> ...]]; 
            
update keyspace <keyspace> [with <att1>=<value1> [and <att2>=<value2> ...]]; 
                
create column family <cf> [with <att1>=<value1> [and <att2>=<value2> ...]]; 
     
update column family <cf> [with <att1>=<value1> [and <att2>=<value2> ...]]; 
            
drop keyspace <keyspace>;                                          Delete a keyspace. 
drop column family <cf>;                                         Delete a column family. 
get <cf>['<key>'];                                                Get a slice of columns. 
get <cf>['<key>']['<super>'];                                Get a slice of sub columns. 
get <cf> where <column> = <value> [and <column> > <value> and ...] [limit int]; 
get <cf>['<key>']['<col>'] (as <type>)*;                        Get a column value. 
get <cf>['<key>']['<super>']['<col>'] (as <type>)*;          Get a sub column value. 
set <cf>['<key>']['<col>'] = <value> (with ttl = <secs>)*;         Set a column. 
set <cf>['<key>']['<super>']['<col>'] = <value> (with ttl = <secs>)*; 
                                                                                             Set a sub column. 
del <cf>['<key>'];                                                                   Delete record. 
del <cf>['<key>']['<col>'];                                              Delete column. 
del <cf>['<key>']['<super>']['<col>'];                             Delete sub column. 
count <cf>['<key>'];                                                               Count columns in record. 
count <cf>['<key>']['<super>'];                           Count columns in a super column. 
truncate <column_family>;                                   Truncate specified column family. 
assume <column_family> <attribute> as <type>; 
                                                                                            Assume a given column family attributes to match a specified type. 
consistencylevel as <level>; 
                                                                                            Change the consistency level for set,get, and list operations. 
list <cf>;                                                   List all rows in the column family. 
list <cf>[<startKey>:]; 
                                                                                            List rows in the column family beginning with <startKey>. 
list <cf>[<startKey>:<endKey>]; 
                                                                                            List rows in the column family in the range from <startKey> to <endKey>. 
list ... limit N;                                                                        Limit the list results to N.

cassandra的命令的更多相关文章

  1. Cassandra学习&命令行实践

    准备 按照Cassandra集群部署搭建两台测试机,环境信息如下: 名称 IP 数据中心名称 node-01 192.168.198.130 datacenter1 node-02 192.168.1 ...

  2. cassandra 环境搭建

    1 下载安装包 http://www.planetcassandra.org/cassandra/?dlink=http://downloads.datastax.com/community/dsc- ...

  3. Cassandra 的启动和初始化

    Cassandra常用命令 Cassandra启动过程详解[原创] Cassandra 的入口 CassandraDaemon 作为Cassandra的入口,做了以下几件事: load configu ...

  4. 转】R利剑NoSQL系列文章 之 Cassandra

    原博文出自于: http://blog.fens.me/category/%E6%95%B0%E6%8D%AE%E5%BA%93/page/3/ 感谢! R利剑NoSQL系列文章 之 Cassandr ...

  5. Cassandra 简介

    Cassandra是云原生和微服务化场景中最好的NoSQL数据库.我信了~ 1. Cassandra是什么 高可用性和可扩展的分布式数据库 Apache Cassandra™是一个开源分布式数据,可提 ...

  6. hadoop+海量数据面试题汇总(一)

    hadoop面试题 Q1. Name the most common InputFormats defined in Hadoop? Which one is default ? Following  ...

  7. cassandra命令

    压力测试:cassandra-stress [command] -node [nodes] -mode thrift user=[user] password=[password] example: ...

  8. Cassandra 数据库, python cqlsh命令

    ★  cql操作数据库(cqlsh.bat: python cqlsh命令操作<优缺点:https://blog.csdn.net/vbirdbest/article/details/77662 ...

  9. Cassandra命令行CLI的基本使用

    启动cassandra-cli服务之后,可以进行CQL的使用. 1. 创建keyspace 可以理解成关系数据库的database [default@testkeyspace] create keys ...

随机推荐

  1. html学习笔记(2)-字母大小写转换练习

    主要应用了text-transform属性值: uppercase:所有单词的字母都大写: lowercase:所有单词的字母都小写: capitalize:每个单词的首字母都大写: none:默认值 ...

  2. PPID=1 runs as a background process, rather than being under the direct control of an interactive user

    https://en.wikipedia.org/wiki/Daemon_(computing) [后台进程,非互动] d 结尾 syslogd 系统日志记录 sshd 响应ssh连接请求 In mu ...

  3. java参数的值传递和引用传递

    今天抽了点时间继续啃java核心基础,即使出来做web挺长时间了,始终觉得基础极其重要. 遇到了java参数的传递类型,豁然开朗之时不忘写下记录. java中采用的总是值传递,包括对对象参数的传递,采 ...

  4. win10+UEFI下u盘安装ubuntu16.04

    本人电脑是华硕,由于要求使用linux所以安装: 1.首先给linux划出一个大分区,感觉最少50G: win10下磁盘管理,在最后的分区中压缩出50g,空间,其他的不用问了,也不用继续分区,一个大的 ...

  5. 题解 P4799 【[CEOI2015 Day2]世界冰球锦标赛】

    题解 P4799 [[CEOI2015 Day2]世界冰球锦标赛] 双向搜索好题 传送门 实际上,双向搜索就是把\(a^n\)的复杂度转变成了大多为\(O(nlogna^{\frac{n}{2}})\ ...

  6. distributed OSGI demo

    今天继续<OSGi原理与最佳实践>.看到第四章.做 HelloWorld-cxf 的样例 照着样例敲来着,整个样例敲完了,执行.一直报错, ----------------这里是解决方法- ...

  7. drawable animation基础

    动画配置<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android: ...

  8. 深入理解SP、LR和PC

    深入理解ARM的这三个寄存器,对编程以及操作系统的移植都有很大的裨益. 1.堆栈指针r13(SP):每一种异常模式都有其自己独立的r13,它通常指向异常模式所专用的堆栈,也就是说五种异常模式.非异常模 ...

  9. 关于JMS和MQ

    2.1 什么是JMS? JMS是java的消息服务,JMS的客户端之间可以通过JMS服务进行异步的消息传输. 2.2 什么是消息模型 ○ Point-to-Point(P2P) --- 点对点 ○ P ...

  10. elasticsearch _source字段的一些说明

    _source field The _source field contains the original JSON document body that was passed at index ti ...