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.

Hive and Pig Output

Hive and Pig Output

New Contributor

Is there a way to get Hive or Pig to output in a single file instead of the parts files?  The only way I know to get this to work is set the mappers to 1 for map only jobs and the reducers to 1 for the other jobs.  Any suggestions?

2 REPLIES 2

Re: Hive and Pig Output

Rising Star

Re: Hive and Pig Output

Contributor

Hive offers some post-query merge options. For example "hive.merge.mapredfiles" here https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration