您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Hive SQL使用和数据加载的一点总结

2025/11/7 7:35:29发布20次查看
hive的数据表分为两种,内部表和外部表。内部表指hive创建并通过load data inpath进数据库的表,这种表可以理解为数据和表结构都
create external table if not exists database.table1
(
column1 string comment 'comment1',
column2 string comment 'comment2'
)
row format delimited fields terminated by \t
stored as inputformat com.hadoop.mapred.deprecatedlzotextinputformat outputformat org.apache.hadoop.hive.ql.io.hiveignorekeytextoutputformat
location 'hdfs:///data/dw/asf/20120201';
标红部分是十分操蛋的,网上几乎所有涉及该单词的文章基本全是复制粘贴抄的,,无一例外,全部写成sorted,如果你找的hive中文资料不是我这篇,恐怕创建外部表都会报错。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product