【问题标题】:Hadoop webhdfs Authentication requiredHadoop webhdfs 需要身份验证
【发布时间】:2014-12-22 07:07:47
【问题描述】:

我已经为 hadoop-2.6.0 在 windows 中配置了带有 SASL 的 kerberos 安全性。

一切正常。但是 webhdfs 不能通过 https 协议工作。

Permission denied when trying to open /webhdfs/v1/?op=LISTSTATUS: GSSException: Defective token detected (Mechanism level: GSSHeader did not find the right tag)

我刚刚使用 https://hostname:50470/webhdfs/v1/?op=LISTSTATUS 进行了测试

我设置了以下属性。但仍然有同样的错误。

<property>
    <name>dfs.webhdfs.enabled</name>
    <value>true</value>
</property>

<property>
    <name>dfs.web.authentication.kerberos.principal</name>
    <value>http/hostname@domain</value>
</property>

<property>
    <name>dfs.web.authentication.kerberos.keytab</name>
    <value>C:\http.keytab</value>
</property>

我们将不胜感激。

谢谢。

【问题讨论】:

  • 你能写出你使用的命令吗?
  • 我使用了这个简单的命令 https://hostname:50470/webhdfs/v1/?op=LISTSTATUS

标签: windows security hadoop kerberos webhdfs


【解决方案1】:

我认为您是在网络浏览器中输入上述网址 (https://hostname:50470/webhdfs/v1/?op=LISTSTATUS)。如果是这样,您需要将浏览器配置为访问受 Kerberos 保护的 URL。

有关 Firefox/Chrome/IE 的更多详细说明位于 http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_sg_browser_access_kerberos_protected_url.html

运行浏览器的用户必须成功连接到集群的 Kerberos 服务器。

【讨论】:

  • 谢谢。是的,我已经为 Firefox 解决了这个问题,但无法在其他浏览器上运行。
【解决方案2】:

即使我们更改了浏览器的设置,它也不起作用。最后,我使用 ksetup 命令将默认领域设置为我的域名。现在它起作用了。谢谢大家。

【讨论】:

  • 我遇到了同样的问题...你能解释一下“将默认领域设置为我的域”你到底做了什么吗?
  • yupe 在浏览器中我在尝试打开 /webhdfs/v1/?op=LISTSTATUS: GSSException: Defective token detected (Mechanism level: GSSHeader did not find the right tag) 时得到 Permission denied ....我想让 curl 工作我猜如果浏览器问题得到解决,那么 curl 也会工作
  • Network Setup 检查 kerberos 设置和浏览器设置。
  • 联系您的 hadoop 管理员并确保他已将 HTTP 主体映射到所有主机名。
  • 只是为了确认所有主机名意味着我的hadoop集群中的所有节点? ..对不起,我对网络概念不太熟悉
猜你喜欢
  • 1970-01-01
  • 2021-10-10
  • 2020-10-16
  • 1970-01-01
  • 1970-01-01
  • 2022-10-16
  • 1970-01-01
  • 1970-01-01
  • 2017-07-02
相关资源
最近更新 更多