<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: KNOX Kerberos webHDFS HA in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/KNOX-Kerberos-webHDFS-HA/m-p/214765#M176677</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1637/muditcse.html" nodeid="1637"&gt;@Mudit Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your configuration looks good however the Curl command seems incorrect.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Your command &lt;/STRONG&gt;as following:&lt;/P&gt;&lt;PRE&gt;# curl -k -i -vvvv --negotiate -u : "http://&amp;lt;knox1&amp;gt;:50070/gateway/&amp;lt;cluster_name&amp;gt;/webhdfs/v1/user?=op=LISTSTATUS"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;In the above command we see that you are using  "http://&amp;lt;knox1&amp;gt;:&lt;STRONG&gt;50070&lt;/STRONG&gt;".  (which is a direct port 50070 for HDFS namenode) ideally you should be hitting the Knox port. Also as knox is a trusted proxy hence you do not need to use "--negotiate" in the curl command (as long as you have not configured knox for SPNEGO authentication)&lt;/P&gt;&lt;P&gt;Hence you should try with the following kind of commands:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As knox by default runs on "https" (instead of "http" and it';s default port is 8443 (instead of 50070) hence polease try this. Also please pass knox LDAP credentials.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -k -i -vvvv -u guest:guest-password  "https://&amp;lt;knox1&amp;gt;:8443/gateway/&amp;lt;topology_name&amp;gt;/webhdfs/v1/user?=op=LISTSTATUS"

Example:
-----------
# curl -k -i -vvvv  -u guest:guest-password  "https://&amp;lt;knox1&amp;gt;:8443/gateway/defaqult/webhdfs/v1/user?=op=LISTSTATUS"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Here the  &amp;lt;topolofy_name&amp;gt; should be your knox topology name like "default" &lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 10:00:21 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-10-24T10:00:21Z</dc:date>
  </channel>
</rss>

