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、
待续。。。
.
原文:https://www.cnblogs.com/jonban/p/10779938.html