簡體   English   中英

需要Hadoop webhdfs身份驗證

[英]Hadoop webhdfs Authentication required

我已經在Windows中使用SASL為hadoop-2.6.0配置了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 )。 如果是這樣,則需要將瀏覽器配置為訪問受Kerberos保護的URL。

有關更詳細的說明, 請訪問http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_sg_browser_access_kerberos_protected_url.html(適用於Firefox / Chrome / IE)。

運行瀏覽器的用戶必須成功初始化到群集的Kerberos服務器。

即使我們更改了瀏覽器的設置,也無法使用。 最后,我使用ksetup命令將默認領域設置為我的域名。 現在可以了。 謝謝大家

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM