如何以用户身份使用 ResourceManager Web 界面 [英] How to use the ResourceManager web interface as an user

查看:31
本文介绍了如何以用户身份使用 ResourceManager Web 界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试使用 Hadoop 资源管理器 Web 界面 (

解决方案

用户信息来自HttpServletRequest#getRemoteUser().
1. 如果你部署了一个不安全的集群,将用户名传递给服务器的最简单方法是通过 url 参数.例如,http://localhost:8088/cluster?user.name=babu
2. 如果您部署了安全集群,您可能会使用 Kerberos 身份验证.您可以使用 kinit 获取 kerberos tgt,然后配置浏览器进行协商.(network.negotiate-auth.trusted-uris 用于firefox,--auth-server-whitelist 用于chrome.我相信有很多关于这个的答案)

更多信息可以查看hadoop官方文档.(https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/HttpAuthentication.html)

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.

解决方案

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)

这篇关于如何以用户身份使用 ResourceManager Web 界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆