2.2. Write Custom Java to Create LZO Files
Create text files as the output of the Hive query.
Write custom Java code to
convert Hive query generated text files to
.lzofilesgenerate
lzo.indexfiles for the.lzofiles
Hive Query Parameters
Prefix the query string with these parameters:
SET hive.exec.compress.output=false SET mapreduce.output.fileoutputformat.compress=false
For example:
hive -e "SET hive.exec.compress.output=false;SET mapreduce.output.fileoutputformat.compress=false;<query-string>"

