Hive 如何创建包含标题的配置单元表
这里的大多数问题都是关于如何在配置单元中创建没有标题的表 但这似乎是假设它默认创建头。Hive 如何创建包含标题的配置单元表,hive,hdfs,Hive,Hdfs,这里的大多数问题都是关于如何在配置单元中创建没有标题的表 但这似乎是假设它默认创建头。 但我无法做到这一点: create table test (x int, y int) row format delimited fields terminated by ',' insert into test select 1,2 当我通过webHDFS浏览/打开文件时,它不包含头 我还尝试: TBLPROPERTIES ('skip.header.line.count' = '0') T
但我无法做到这一点:
create table test (x int, y int)
row format delimited
fields terminated by ','
insert into test select 1,2
当我通过webHDFS浏览/打开文件时,它不包含头
我还尝试:
TBLPROPERTIES ('skip.header.line.count' = '0')
TBLPROPERTIES ('skip.header.line.count' = '1')
但不会创建标题。我想为包含标题和数据的表创建一个文本“文件”,以便下载/发送电子邮件