How to use the ResourceManager web interface as an user

烂漫一生 提交于 2019-12-18 04:52:47

问题


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.


回答1:


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)




回答2:


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.



来源:https://stackoverflow.com/questions/32121402/how-to-use-the-resourcemanager-web-interface-as-an-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!