kudu playground
建表:
CREATE TABLE my_first_table (
id BIGINT,
name STRING
)
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'my_first_table',
'kudu.master_addresses' = 'node1:7051',
'kudu.key_columns' = 'id'
);
Fetched 0 row(s) in 1.26s
[node2:21000] > show tables;
Query: show tables
+----------------+
| name |
+----------------+
| my_first_table |
+----------------+
Fetched 1 row(s) in 0.06s
[node2:21000] > desc my_first_table
> ;
Query: describe my_first_table
+------+--------+---------+
| name | type | comment |
+------+--------+---------+
| id | bigint | |
| name | string | |
+------+--------+---------+
Fetched 2 row(s) in 5.09s
插入数据:
insert into my_first_table(id, name) values(,'shaocheng');
insert into my_first_table(id, name) values(,'jianzhong');
insert into my_first_table(id, name) values(,'chenbiao');
insert into my_first_table(id, name) values(,'xingjiang');
[node2:21000] > insert into my_first_table(id, name) values(1001,'shaocheng');
Query: insert into my_first_table(id, name) values(1001,'shaocheng')
Inserted 1 row(s) in 0.27s
[node2:21000] > insert into my_first_table(id, name) values(1002,'jianzhong');
Query: insert into my_first_table(id, name) values(1002,'jianzhong')
Inserted 1 row(s) in 0.12s
[node2:21000] > insert into my_first_table(id, name) values(1003,'chenbiao');
Query: insert into my_first_table(id, name) values(1003,'chenbiao')
Inserted 1 row(s) in 0.12s
[node2:21000] > insert into my_first_table(id, name) values(1004,'xingjiang');
Query: insert into my_first_table(id, name) values(1004,'xingjiang')
Inserted 1 row(s) in 0.12s
查询:
[node2:21000] > select * from my_first_table;
Query: select * from my_first_table
+------+-----------+
| id | name |
+------+-----------+
| 1001 | shaocheng |
| 1002 | jianzhong |
| 1003 | chenbiao |
| 1004 | xingjiang |
+------+-----------+
删除:
[node2:21000] > delete my_first_table where id=1003;
Query: delete my_first_table where id=1003
Fetched 0 row(s) in 0.17s
[node2:21000] > select * from my_first_table;
Query: select * from my_first_table
+------+-----------+
| id | name |
+------+-----------+
| 1001 | shaocheng |
| 1002 | jianzhong |
| 1004 | xingjiang |
+------+-----------+
Fetched 3 row(s) in 0.15s
建立第二张表:
CREATE TABLE my_second_table TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'my_second_table',
'kudu.master_addresses' = 'node1:7051',
'kudu.key_columns' = 'id'
) AS SELECT * FROM my_first_table ;
CREATE TABLE my_second_table TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'my_second_table',
'kudu.master_addresses' = 'node1:7051',
'kudu.key_columns' = 'id'
) AS SELECT * FROM my_first_table ;
kudu playground的更多相关文章
- 安装Kudu
1.默认安装好yum2.需以root身份安装3.安装ntp yum install ntp -y4.启动ntp /etc/init.d/ntpd start|stop|restart5.添加安装包yu ...
- 窥探Swift编程之在Playground上尽情的玩耍
自从苹果公司发布Swift的时候,Xcode上又多了一样新的东西---"Playground".Playground就像操场一样,可以供我们在代码的世界里尽情的玩耍,在本篇博客中就 ...
- 通过KUDU获取Azure网站的日志
部署到Azure上的website,由于无法通过RDP的方式去登录查看log,所以我们只能通过FTP的方式或者kudu的方式进行查看,具体如下: 1.使用FTP账户和密码登录网站的KUDU界面: 如您 ...
- 自制工具:迅速打开一个Node 环境的Playground
需求 经常有这种情况,写代码的时候需要实验种想法,亟需一种playground 环境来玩耍.如果是前端的话可以打开chrome 的控制台,但是如果是Node 的话就比较麻烦了.我要打开我的存放试验代码 ...
- Particle Playground 3.03 - 粒子特效王者
<ignore_js_op> <ignore_js_op> <ignore_js_op> <ignore_js_op> <ignore_js_op ...
- Swift开发第三篇——Playground
本篇分为两部分: 一.Playground的延时运行 二.Playground的可视化 一.Playground的延时运行 Playground 就是提供一个可以即时编译的类似 REPL 的环境,他为 ...
- kudu
Kudu White Paper http://www.cloudera.com/documentation/betas/kudu/0-5-0/topics/kudu_resources.html h ...
- TensorFlow Playground
A Neural Network Playground Understanding neural networks with TensorFlow Playground 机器之心翻译
- swift开发:试玩 Apple 站点的 playground
https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_ ...
随机推荐
- 1010. Radix (25)(未完成)
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The an ...
- 关于json-p
关于json-p 目录 关于json-p json-p是什么 json-p原理分析 json-p的缺点 json-p是什么 json-p实际上是一种跨域ajax发送http请求的方法,它不是什么全新的 ...
- MyBatis 入门(一)
MyBatis mybatis和hibernate都属于orm(对象与关系映射) 框架 mybatis的优点: 1.sql-mapping :操作更自由,可控性高,执行效率更高 2.轻量,学习更容易 ...
- 解决magento后台无法登陆/登陆没有反应的方法
安装过magento的几个版本,安装好后在登陆后台的时候都遇到了点问题,用户名和密码都输入正确,就是登陆不了后台,经过研究发现,登陆不了后台的主要是因为magento自身缓存设置的问题,最模板解决方法 ...
- epoll里面mmap释疑
今天看到有文章说epoll里面用了mmap,还说进程不需要从内核读数据,只需要从用户态buffer读数据就可以.觉得很神奇,就查了一下,发现完全不是描述的那样.实际上,只是把要传递的fd通过mmap来 ...
- VIM小技巧
1.复制多行 vi编辑器中的整行(多行)复制与粘贴就非常必要了. 1.复制 1)单行复制 在命令模式下,将光标移动到将要复制的行处,按"yy"进行复制: 2)多行复制 在命令模式下 ...
- Spring基于注解ehCache缓存整合
注解的使用参照:http://blog.csdn.net/wjacketcn/article/details/50945887 (侵删) ehCache是纯java实现的缓存组件,spring从3.1 ...
- text-decoration
2016-08-18 text-decoration blink貌似在firefox里也不起作用? <p style="color:red;text-decoration:unde ...
- testlink部署与迁移
几个特殊的文件: 1.D:\xampp\htdocs\testlink\config.inc 安装配置文件,此处需要修改安装目录(g_repositoryPath.log_path) 2.D:\xa ...
- Linux 系统把英文修改成中文界面
1.一般安装后的linux系统都是英文的界面,网上查了一下各种说法都有,我只做了如下的配置就好了,下载个中文包,改一下i18n就完事了,并没有那么复杂 下面上图文: 目前是英文的界面 2.下载个中文包 ...