Support Questions

Find answers, ask questions, and share your expertise

Username and Password for Resource Manager WebUI

avatar
Explorer

Every time i try to use the Hadoop Resource Manager web interface (http://resource-manger.host:8088/cluster/) i show up logged in as dr.who. My question, how can I login as another user? In this case i want to login as myself and have a higher lever of privileges than dr.who.

My Cluster is non kerberised.

8 REPLIES 8

avatar
Expert Contributor

@ASIF Khan Hadoop’s Pseudo/Simple authentication can be used if the cluster is not kerberized. The user name must be specified in the first browser interaction using the user.name query string parameter. e.g. http://rm-host:8088/cluster?user.name=asif.

avatar
Explorer

@Tarun Parimi

Still i am able to see all the jobs..if i could get popup for username and password for it would be great.

avatar
Expert Contributor

Currently in hadoop only simple authentication and kerberos (SPNEGO) authentication is supported out of the box. So your requirement is not supported. Refer http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/HttpAuthentication.html

avatar
New Contributor

This is a great post Thanks for the information!

https://www.swantao.com/whiteboard-markers/

avatar
Master Mentor

@ASIF Khan

If the cluster is managed by Ambari, this should be added in Ambari > HDFS > Configurations>Advanced core-site > Add Property

hadoop.http.staticuser.user=yarn

Please let me know if that worked

avatar

Hey @Shelton 

 

I just apply Kerberos on my Cluster CDH 6.1.1 Version and now I am not able to access Web UI of Name Node and Resource Manager is their any solution for this.

 


Thank you so much

avatar
Master Mentor

@USMAN_HAIDER 
There is this step below did you perform that?

Kerberos must be specified as the security mechanism for Hadoop infrastructure, starting with the HDFS service. Enable Cloudera Manager Server security for the cluster on an HDFS service. After you do so, the Cloudera Manager Server automatically enables Hadoop security on the MapReduce and YARN services associated with that HDFS service.

In the Cloudera Manager Admin Console:

Select Clusters > HDFS-n.
1.Click the Configuration tab.
2.Select HDFS-n for the Scope filter.
3.Select Security for the Category filter.
4.Scroll (or search) to find the Hadoop Secure Authentication property.
5.Click the Kerberos button to select Kerberos:

Shelton_0-1627245224689.png

Please revert

 

 

 

 

 

 

avatar
Rising Star

What is Simple Athentication here: http://rm-host:8088/cluster?user.name=asif not asking password. and RM UI should show only jobs belong to Asif. but both are not happening, How can I achieve these, can I check LDAP credentials with Simple Authentication?