This problem is present in the Hortonworks Abmbari 1.6.1 based install (HDP 2.1, Hive, etc) and setting the parameter only partially worked for me…
In the hive CLI, I type:
set hive.stats.tmp.loc=’/apps/hive’;
set hive.execution.engine=mr;
(Note: the index rebuild fails with the execution engine is tez). After executing these commands I tried to rebuild the index and it still fails but much later in the process when the map is 100% done and the reduce is about 16%.with an error message of
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
I’m still trying to figure out why it failed and thought i would share my progress.