设为首页 加入收藏

TOP

Hive shell 常用命令
2014-11-23 23:57:07 来源: 作者: 【 】 浏览:11
Tags:Hive shell 常用 命令

连接 hive shell


直接输入 hive


1、显示表


hive> show tables;


OK


test


Time taken: 0.17 seconds, Fetched: 1 row(s)


2、创建表


hive> create table test(key string);


OK


Time taken: 0.265 seconds


3、创建分区表:


hive> create table logs(ts bigint,line string) partitioned by (dt String,country String);


4、加载分区表数据:


5、展示表中有多少分区:


hive> show partitions logs;


相关阅读


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Bean在Spring容器中的生命周期 下一篇Android 增加滑动刷新特性

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: