Details
Description
Hive can hit this bug, as reported by Jack on the cdh-user lists. The fix is to backport https://issues.apache.org/jira/browse/HIVE-2372 that helps keep the ARG_MAX from being hit (by truncating unnecessary values).
A workaround for some OSes exists, documented at http://www.cyberciti.biz/faq/argument-list-too-long-error-solution/ (tweakable without a recompile).