導入100W的Csv數(shù)據(jù),使用OpenCsv解析工具解析Csv,發(fā)現(xiàn)報錯 報錯內容 com.opencsv.exceptions.CsvMalformedLineException: Unterminated quoted field at end of CSV line. Beginning of lost text: [XXXXX...] at com.opencsv.CSVReader.readNext(CSVReader.java:355) ~[opencsv-4.6.jar!/:na] 解析代碼 1 2 3 4...
row format serde 'org.apache.hadoop.hive.serde2.OpenCSVSerde' stored as textfile; -- 先導入csv文件到表格csv2,保存格式是textfile load data local inpath '/data/csv2.csv' into table csv2; drop table csv3; -- 創(chuàng)建csv3,保存格式parquet create table if not exists csv3 ( uid int, uname...