首页 > 其他 > 详细

Hive 常用命令和语句

时间:2019-04-27 20:09:22      阅读:128      评论:0      收藏:0      [点我收藏+]

 

1、 创建表 create-table.sql

create table if not exists db_hive.tb_user
(
    id int,
    username string comment 用户名,
    age int comment 年龄,
    address string comment 地址
)
comment 用户表
row format delimited fields terminated by   
stored as textfile
location /user/hive/warehouse/db_hive.db/db_user

 

2、执行创建表

hive -f create-table.sql

 

3、

4、

5、

 

 待续。。。

 

 

 

.

Hive 常用命令和语句

原文:https://www.cnblogs.com/jonban/p/10779938.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!