Configuring HDFS for Hive
You need to set up an HDFS proxy user for the Ambari daemon account. For example, if
ambari-server daemon is running as root
, you set up a proxy user for
root
in core-site.xml by clicking HDFS > Configs >
Custom core-site > Add Property. In the Add Property dialog box, you add the
following keys and values:
Key | Value |
---|---|
|
|
|
|
Ambari views use the doAs
option for commands. This option
enables the Ambari process user to impersonate the Ambari
logged-in user. To avoid receiving permissions errors for
job submissions and file save operations, you must create HDFS users for all
Ambari users that use the views.
Note | |
---|---|
If Ambari Server is running as a non-root user, such as 'ambari', and you are planning on using Ambari Views, the following properties in Services > HDFS > Configs > Advanced core-site must be added: hadoop.proxyuser.ambari.groups=* hadoop.proxyuser.ambari.hosts=* See the Ambari Security Guide for more information about How to Configure Ambari Server for Non-Root. |
Note | |
---|---|
This view stores user metadata in HDFS. By default, the location in HDFS for this metadata is
su - hdfs hadoop fs -mkdir /user/admin hadoop fs -chown admin:hadoop /user/admin
|