To set up an HDFS proxy
user for the Ambari Server daemon account, you must configure the proxy user in the HDFS
configuration.
| Note |
---|
If you previously set up the proxy user for another View, you can skip this
task. |
This configuration is determined by the account name the ambari-server
daemon is running as. For example, if your ambari-server is running as root, you set up
an HDFS proxy user for root.-
In Ambari Web, browse to .
-
On the Advanced tab, navigate to the Custom
core-site section.
-
Click Add Property…, then add the following custom
properties:
hadoop.proxyuser.root.groups="users"
hadoop.proxyuser.root.hosts=ambari-server.hostname
Notice the ambari-server daemon account name root is part
of the property name. Be sure to modify this property name for the account name
you are running the ambari-server as. For example, if you were running
ambari-server daemon under an account name of
ambariusr, you would use the following properties
instead.
hadoop.proxyuser.ambariusr.groups="users"
hadoop.proxyuser.ambariusr.hosts=ambari-server.hostname
Similarly, if you have configured Ambari Server for Kerberos, be sure to
modify this property name for the primary Kerberos
principal user. For example, if ambari-server is setup for
Kerberos using principal ambari-server@EXAMPLE.COM, you
would use the following properties instead:
hadoop.proxyuser.ambari-server.groups="users"
hadoop.proxyuser.ambari-server.hosts=ambari-server.hostname
-
Save the configuration change.
Restart the required components as prompted by Ambari.