bloomberg / chef-bach

Chef recipes for Bloomberg's deployment of Hadoop and related components
Apache License 2.0
61 stars 66 forks source link

Hive Beeline doesn't use scratch directory defined in hive-site.xml #38

Closed amithkanand closed 9 years ago

amithkanand commented 9 years ago

Currently we use Hive 0.12 and the behavior is different between Hive CLI and Hive BEELINE in regards to how hive scratchdir is created/used. Hive CLI picks up the value defined by hive-exec.scratchdir parameter in hive-site.xml where Hive BEELINE uses a static value of /tmp/hive-hive. The static nature of BEELINE causes issues as /tmp/hive-hive is created automatically and is owned by the user who executed the very first query preventing write access for all other users of BEELINE. I filed a case with Hortonworks and as per them this behavior is fixed in Hive 0.14. To fix this issue in Hive 0.12:

Note: Beeline uses HiveServer2 and HiveServer2 has a bug as per Hive-6847

amithkanand commented 9 years ago

Fixed in PR #36