Hive Job failed with return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask and Query Performance Hive Job failed with return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask and Query Performance hadoop hadoop

Hive Job failed with return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask and Query Performance


Cause: This issue occurs when Kerberos is enabled and "hive.server2.enable.doAs" property in Hive is set to true. When this property is set, the query looks for "Run as end user instead of Hive user is true", which means the end user has to be present locally in every Node Managers. The above error occurs when the end user is not present locally.

Solution: To resolve this issue, create the end user running the Hive queries locally or present it through AD/LDAP.


If you are running for many dates it will happen, Reduce the dates, if you really need 3 months data, use union all and divided into 3 months.