Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Pig unable to create .bz2 files but creating .deflate files

Pig unable to create .bz2 files but creating .deflate files

New Contributor
Here is my code, I am using to create bz2 file as my pig output.
<code>set output.compression.enabled true;
set output.compression.codec org.apache.hadoop.io.compress.BZip2Codec;
inputFile = LOAD '/dl/myfolder/' using PigStorage('|') AS (col1,col2,col3,col4,col5,clo6,col7,col8,col9,col10);
filteredFile = FILTER inputFile BY col7 is not null;
store filteredFile into '/dl/myfolder/compressdata/' USING PigStorage('|');
 

Output file /dl/myfolder/compressdata/part-m-00000.deflate

Don't have an account?
Coming from Hortonworks? Activate your account here