欢迎投稿

今日深度:

hive,

hive,


一、
内部表,先有表,后有数据
外部表,先有数据,后有表

create table stu(id int,name string) ;

在 hadoop hdfs 上新建 aaa 路径,上传 txt
建立外部表
create external table stu(id int ,name string ) row format delimited fields terminater by '/t' location '/aaa'

select * from stu ;

二、

www.htsjk.Com true http://www.htsjk.com/hive/28514.html NewsArticle hive, 一、 内部表,先有表,后有数据 外部表,先有数据,后有表 create table stu(id int,name string) ; 在 hadoop hdfs 上新建 aaa 路径,上传 txt 建立外部表 create external table stu(id int ,name string...
相关文章
    暂无相关文章
评论暂时关闭