1. csv文件另存为txt文件
2. hive中建临时表
create table test_table_1
(
id STRING,
name STRING
) row format delimited fields terminated by ‘\t’
STORED AS TEXTFILE;
3. 加载txt数据
load data local inpath ‘/home/test_table_1.txt’ into table test_table_1;
4. 创建impala kudu 表
CREATE TABLE IF NOT EXISTS kudu_test_table_1
(
id STRING,
name STRING,
PRIMARY KEY (id , name )
) STORED AS KUDU
5. hive数据导出到苦读中
insert into kudu_test_table_1select * from test_table_1
————————————————
版权声明:本文为CSDN博主「November_28」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/November_28/article/details/89228216