1.建表 CREATE TABLE app.xxx( ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE; 2.找到数据文件路径 hadoop ls 3.导入数据 hadoop fs -put xxx.csv /inceptor1/user/hive/warehouse/app.db/hive/xxx
yuan66 2021-09-06 13:54 原文
1.建表 CREATE TABLE app.xxx( ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE; 2.找到数据文件路径 hadoop ls 3.导入数据 hadoop fs -put xxx.csv /inceptor1/user/hive/warehouse/app.db/hive/xxx