1

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>

助けていただければ幸いです。

ありがとう。

4

2 に答える 2

1

https://hostname:50470/webhdfs/v1/?op=LISTSTATUS上記の URL ( ) を Web ブラウザに入力していると思います。その場合は、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 サーバーに正常に kinit されている必要があります。

于 2014-12-24T14:47:41.233 に答える