-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/19445/
-----------------------------------------------------------

Review request for Ambari, Andrew Onischuk, Mahadev Konar, and Sumit Mohanty.


Bugs: AMBARI-5156
    https://issues.apache.org/jira/browse/AMBARI-5156


Repository: ambari


Description
-------

In a cluster node we had set the below in _/etc/hive/conf/hive-site.xml_

<property>
    <name>hive.jar.directory</name>
    <value>hdfs:///apps/hive/install</value>
</property>

The HDFS folder has the following contents
# hadoop fs -ls -R /apps/hive/
drwxr-xr-x   - hive hdfs          0 2014-03-19 17:10 /apps/hive/install
-rwxr-xr-x   3 hive hdfs   14719276 2014-03-19 17:10 
/apps/hive/install/hive-exec.jar
drwxrwxrwx   - hive hdfs          0 2014-03-19 17:08 /apps/hive/warehouse

As user _ambari-qa_ I run the _hive_ command to hit this exception
$ hive

Logging initialized using configuration in 
file:/etc/hive/conf.dist/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: 
org.apache.hadoop.security.AccessControlException: Permission denied: 
user=ambari-qa, access=WRITE, inode="/apps/hive/install":hive:hdfs:drwxr-xr-x


Diffs
-----

  
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py
 057b8f6 

Diff: https://reviews.apache.org/r/19445/diff/


Testing
-------


Thanks,

Sid Wagle

Reply via email to