如何将ResourceManager Web界面用作用户 [英] How to use the ResourceManager web interface as an user

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

问题描述

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

解决方案

用户信息来自HttpServletRequest#getRemoteUser()。

1.如果您部署了不安全的集群,将用户名传递给服务器的最简单方法是使用url参数。例如, http:// localhost:8088 / cluster?user.name = babu <
2.如果您部署了安全群集,则可能使用Kerberos身份验证。您可以使用 kinit 来获取kerberos tgt,然后配置浏览器进行协商。 (针对firefox的 network.negotiate-auth.trusted-uris ,以及针对铬的),我相信这里有很多答案)



有关更多信息,可以查看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天全站免登陆