Hi,

While executing hive queries through CliDriver, we are getting permission 
denied error on scratch dir when executing with impersonation. The error goes 
away when the system property HADOOP_PROXY_USER is set to the the 
proxy/impersonated user name.

Attaching the sample program to reproduce the issue. This happens on HDP 2.2 
(did not try on CDH 5u4 which also has hive 0.14).

The sample program when executed without any cmd line parameters reproduces 
this issue. When a cmd line arg is provided, it sets the system property and 
the queries are executed without an error.

Has anyone seen this? Seems like a possible regression from 0.13 to 0.14. It 
does not happen on CDH 5u2 which has hive 0.13.

Kiran

Attachment: HiveCliSample.java
Description: HiveCliSample.java

Reply via email to