<?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: Apache Knox - 404 error on accessing hdfs using WebHDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128907#M51584</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; , you might be having multiple topology files under '/etc/knox/conf/topologies/' , you can have multiple topology files under that location in the form &amp;lt;topology_name&amp;gt;.xml, and knox will automatically pick up these new topology definition files. &lt;/P&gt;&lt;P&gt;Then the URL for each service (curl call) will change from /gateway/default/HIVE to /gateway/&amp;lt;topologu_name&amp;gt;/HIVE for the topology named &amp;lt;topology_name&amp;gt;.xml&lt;/P&gt;&lt;P&gt;May be, you only have configured default.xml topology file and hence its working.&lt;/P&gt;&lt;P&gt;NOTE : These custom topology files need to be managed and maintained outside of Ambari, since Ambari only manages the default topology. Because of this, any changes made to the default topology via Ambari will need to be manually propagated to the customized topology files.&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2017 21:02:35 GMT</pubDate>
    <dc:creator>krajguru</dc:creator>
    <dc:date>2017-01-16T21:02:35Z</dc:date>
    <item>
      <title>Apache Knox - 404 error on accessing hdfs using WebHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128904#M51581</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to secure HDP using Apache Knox .. using the &lt;A href="http://hortonworks.com/hadoop-tutorial/securing-hadoop-infrastructure-apache-knox/"&gt;HDP Apache Knox tutorial&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;and running into following issues, when firing the following commands -&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl -iku guest:guest-password -X put 'https://sandbox.hortonworks.com:8443/gateway/knox_sample/webhdfs/v1/user/guest/knox-sample?op=MKDIRS&amp;amp;permission=777'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any ideas on this ?
&lt;/P&gt;&lt;P&gt;[root@sandbox knox-server]# curl -iku guest:guest-password -X put 'https://sandbox.hortonworks.com:8443/gateway/knox_sample/webhdfs/v1/user/guest/knox-sample?op=MKDIRS&amp;amp;permission=777'
HTTP/1.1 404 Not Found
Date: Thu, 12 Jan 2017 06:24:17 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 331
Server: Jetty(9.2.15.v20160210)

&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/&amp;gt;
&amp;lt;title&amp;gt;Error 404 &amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&lt;STRONG&gt;&amp;lt;h2&amp;gt;HTTP ERROR: 404&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Problem accessing /gateway/knox_sample/webhdfs/v1/user/guest/knox-sample. Reason:
&amp;lt;pre&amp;gt;  Not Found&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&lt;/STRONG&gt;
&amp;lt;hr /&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 07:28:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128904#M51581</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-14T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Knox - 404 error on accessing hdfs using WebHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128905#M51582</link>
      <description>&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;&lt;CODE&gt;curl -iku guest:guest-password -X put 'https://sandbox.hortonworks.com:8443/gateway/&lt;EM&gt;&lt;STRONG&gt;default&lt;/STRONG&gt;&lt;/EM&gt;/webhdfs/v1/user/guest/knox-sample?op=MKDIRS&amp;amp;permission=777'&lt;/CODE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;i made the change highlighted, and i was able to make it work i.e. the gateway/default instead of gateway/knox_sample&lt;/P&gt;&lt;P&gt;Not sure if that is the correct fix, do i need to rename the default Knox gateway (to knox_sample) ?&lt;/P&gt;&lt;P&gt;i'm new to Knox, so appreciate your responses.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 09:29:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128905#M51582</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-14T09:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Knox - 404 error on accessing hdfs using WebHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128906#M51583</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/77893/apache-knox-how-to-restrict-access-if-request-is-n.html#"&gt;@Neeraj Sabharwal&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/questions/77893/apache-knox-how-to-restrict-access-if-request-is-n.html#"&gt;@Sunile Manjee&lt;/A&gt; - any ideas on this ?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 09:41:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128906#M51583</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-14T09:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Knox - 404 error on accessing hdfs using WebHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128907#M51584</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; , you might be having multiple topology files under '/etc/knox/conf/topologies/' , you can have multiple topology files under that location in the form &amp;lt;topology_name&amp;gt;.xml, and knox will automatically pick up these new topology definition files. &lt;/P&gt;&lt;P&gt;Then the URL for each service (curl call) will change from /gateway/default/HIVE to /gateway/&amp;lt;topologu_name&amp;gt;/HIVE for the topology named &amp;lt;topology_name&amp;gt;.xml&lt;/P&gt;&lt;P&gt;May be, you only have configured default.xml topology file and hence its working.&lt;/P&gt;&lt;P&gt;NOTE : These custom topology files need to be managed and maintained outside of Ambari, since Ambari only manages the default topology. Because of this, any changes made to the default topology via Ambari will need to be manually propagated to the customized topology files.&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 21:02:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128907#M51584</guid>
      <dc:creator>krajguru</dc:creator>
      <dc:date>2017-01-16T21:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Knox - 404 error on accessing hdfs using WebHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128908#M51585</link>
      <description>&lt;P&gt;The gateway/knox_sample assumes a topology named knox_sample.xml in your {GATEWAY_HOME}/conf/topologies directory. If that doesn't exist then you will get a 404.&lt;/P&gt;&lt;P&gt;As mentioned by others, if you are using Ambari to make the changes then you are using the default.xml topology since that is the only topology that Ambari is aware.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 00:45:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Knox-404-error-on-accessing-hdfs-using-WebHDFS/m-p/128908#M51585</guid>
      <dc:creator>lmccay</dc:creator>
      <dc:date>2017-01-17T00:45:19Z</dc:date>
    </item>
  </channel>
</rss>

