How to use the ResourceManager web interface as an user
Asked Answered
S

2

8

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.

enter image description here

Siloum answered 20/8, 2015 at 14:46 Comment(0)
K
9

The user infomation is got from HttpServletRequest#getRemoteUser().
1. If you deployed an insecure cluster, the simplest way to pass the username to server is by url parameter. For example, http://localhost:8088/cluster?user.name=babu
2. If you deployed a secure cluster, you probably use Kerberos authentication. You can use kinit to get a kerberos tgt, then configure the browser to negotiate. (network.negotiate-auth.trusted-uris for firefox, and --auth-server-whitelist for chromium. I'm sure there's lots of answers about this)

For more information, you can check hadoop official documentation.(https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/HttpAuthentication.html)

Killion answered 16/5, 2016 at 7:55 Comment(0)
S
1

You should set the access control list by changing the default configuration of:

yarn.resourcemanager.zk-acl

from

world:anyone:rwcda

to something else,which is Cluster-specific

The ACLs the ResourceManager uses for the znode structure to store the internal state.

Saline answered 22/8, 2015 at 22:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.