Member since
11-21-2016
1
Post
0
Kudos Received
0
Solutions
11-21-2016
11:32 AM
Hi Team, I want to load compressed .zip files (which has many csv files ex:abc.csv,def.csv...xyz.csv ) to hive table , when i tried using below query ..all the column values are loaded null. But if i use gzip compression and compress all the csv file to a .gz file and load ..data is loading fine. So can't we load zip files directly to hive ? Query: CREATE EXTERNAL TABLE `table_zip`(
`v1` string,
`v2` string,
`v3` string,
`v4` string,
`v5` string) ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'/data/test/'
... View more
Labels:
- Labels:
-
Apache Hive