How can i configure authentication for Hadoop Yarn resourcemanager UI(http://<ip>:8088) and NameNode ui(http://<ip>:50070)

0

I have configure the Kerberos for hadoop authentication. I have created a service principal hadoop and HTTP and user principal hadoop(os user) and added the tags in core-site.xml.


core-site.xml

<property>
<name>hadoop.http.filter.initializers</name>
<value>org.apache.hadoop.security.AuthenticationFilterInitializer</value>
</property>
<property>
<name>hadoop.http.authentication.type</name>
<value>kerberos</value>
</property>
<property>
<name>hadoop.http.authentication.token.validity</name>
<value>10000</value>
</property>
<property>
<name>hadoop.http.authentication.signature.secret.file</name>
<value>$HADOOP_HOME/conf/http-auth.secret</value>
</property>
<property>
<name>hadoop.http.authentication.cookie.domain</name>
<value>hadoopdomain.com</value>
</property>
<property>
<name>hadoop.http.authentication.kerberos.principal</name>
<value>HTTP/master.hdcluster.com@HDREALM</value>
</property>
<property>
<name>hadoop.http.authentication.kerberos.keytab</name>
<value>${user.home}/kerberos.hadoop.keytab</value>
</property>

And copied the changed file to all the slaves.

when i try to access the URL http://:8088/cluster it prompts for username password. When i enter the user principal (hadoop/password) in my case it throws exception 403.

Kindly suggest any documents which will be helpful to configure the resourcemanger Web UI authentication.

Thanks!

chetan mundhe

Posted 2019-06-03T06:19:44.693

Reputation: 1

No answers