I created a Hive table by setting the following Properties on hive command prompt:
SET mapreduce.output.fileoutputformat.compress.codec=com.hadoop.compression.lzo.LzopCodec
SET hive.exec.compress.output=true
SET mapreduce.output.fileoutputformat.compress=true
Create table statement:
create external table dept_comp1(id bigint,code string,name string) LOCATION '/users/JOBDATA/comp' ;
insert overwrite table dept_comp select * from src__1;
Now I go to this location /users/JOBDATA/comp and find a file named 000000_0.deflate
I am not sure that this is the compressed file though when I download it, its unreadable. If it is, then why does it not have an .lzo extension?
If it is not, where can I find the .lzo file?
Lastly how can I decompress it using java? Thanks