Index: ql/src/test/queries/clientpositive/groupby_bigdata.q =================================================================== --- ql/src/test/queries/clientpositive/groupby_bigdata.q (revision 4694) +++ ql/src/test/queries/clientpositive/groupby_bigdata.q (working copy) @@ -1,5 +1,5 @@ set hive.map.aggr.hash.percentmemory = 0.3; -set hive.mapred.local.mem = 256; +set hive.mapred.local.mem = 384; select count(distinct subq.key) from (FROM src MAP src.key USING 'python ../data/scripts/dumpdata_script.py' AS key WHERE src.key = 10) subq; Index: ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java (revision 4694) +++ ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java (working copy) @@ -558,6 +558,8 @@ } catch (Throwable th) { scriptError = th; + LOG.warn("Exception in StreamThread.run(): " + th.getMessage() + + "\nCause: " + th.getCause()); LOG.warn(StringUtils.stringifyException(th)); } finally { try {