<?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 HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229696#M82507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using HDP3.0 and ambari 2.7 blueprint. webhdfs via knox failed due to:&lt;/P&gt;&lt;PRE&gt;2018-08-21 19:26:33,035 ERROR knox.gateway (GatewayDispatchFilter.java:isDispatchAllowed(155)) - The dispatch to &lt;A href="http://myhost.com:50070/webhdfs/v1/user" target="_blank"&gt;http://myhost.com:50070/webhdfs/v1/user&lt;/A&gt; was disallowed because it fails the dispatch whitelist validation. See documentation for dispatch whitelisting.&lt;/PRE&gt;&lt;P&gt;I have verified webhdfs without knox works:&lt;/P&gt;&lt;PRE&gt;curl -vvv &lt;A href="http://myhost.com:50070/webhdfs/v1/user/?op=LISTSTATUS" target="_blank"&gt;http://myhost.com:50070/webhdfs/v1/user/?op=LISTSTATUS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Also, ambari, zeppelin and ranger UI work fine via knox.&lt;/P&gt;&lt;P&gt;The knox settings are:&lt;/P&gt;&lt;PRE&gt;gateway.dispatch.whitelist: DEFAULT

gateway.dispatch.whitelist.services: DATANODE,HBASEUI,HDFSUI,JOBHISTORYUI,NODEUI,RESOURCEMANAGER,WEBHBASE,WEBHDFS,YARNUI&lt;/PRE&gt;&lt;P&gt;webhdfs via knox worked for me on HDP2.6. Any idea? Appreciate any help.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 02:36:53 GMT</pubDate>
    <dc:creator>jiangok2006</dc:creator>
    <dc:date>2018-08-22T02:36:53Z</dc:date>
    <item>
      <title>HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229696#M82507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using HDP3.0 and ambari 2.7 blueprint. webhdfs via knox failed due to:&lt;/P&gt;&lt;PRE&gt;2018-08-21 19:26:33,035 ERROR knox.gateway (GatewayDispatchFilter.java:isDispatchAllowed(155)) - The dispatch to &lt;A href="http://myhost.com:50070/webhdfs/v1/user" target="_blank"&gt;http://myhost.com:50070/webhdfs/v1/user&lt;/A&gt; was disallowed because it fails the dispatch whitelist validation. See documentation for dispatch whitelisting.&lt;/PRE&gt;&lt;P&gt;I have verified webhdfs without knox works:&lt;/P&gt;&lt;PRE&gt;curl -vvv &lt;A href="http://myhost.com:50070/webhdfs/v1/user/?op=LISTSTATUS" target="_blank"&gt;http://myhost.com:50070/webhdfs/v1/user/?op=LISTSTATUS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Also, ambari, zeppelin and ranger UI work fine via knox.&lt;/P&gt;&lt;P&gt;The knox settings are:&lt;/P&gt;&lt;PRE&gt;gateway.dispatch.whitelist: DEFAULT

gateway.dispatch.whitelist.services: DATANODE,HBASEUI,HDFSUI,JOBHISTORYUI,NODEUI,RESOURCEMANAGER,WEBHBASE,WEBHDFS,YARNUI&lt;/PRE&gt;&lt;P&gt;webhdfs via knox worked for me on HDP2.6. Any idea? Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 02:36:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229696#M82507</guid>
      <dc:creator>jiangok2006</dc:creator>
      <dc:date>2018-08-22T02:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229697#M82508</link>
      <description>&lt;P&gt;Looking at the documentation (https://knox.apache.org/books/knox-1-1-0/user-guide.html#Gateway+Server+Configuration), try removing &lt;/P&gt;&lt;P&gt;gateway.dispatch.whitelist: DEFAULT&lt;/P&gt;&lt;P&gt;property.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 05:33:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229697#M82508</guid>
      <dc:creator>smore</dc:creator>
      <dc:date>2018-08-23T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229698#M82509</link>
      <description>&lt;P&gt;None of Ambari, Zeppelin, or RangerUI are affected by this whitelisting.&lt;/P&gt;&lt;P&gt;
	Can you see the default whitelist in gateway.log?&lt;/P&gt;&lt;P&gt;
	It should say something like&lt;/P&gt;&lt;PRE&gt;Applying a derived dispatch whitelist because none is configured in gateway-site: xxxxxxx

&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 05:42:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229698#M82509</guid>
      <dc:creator>pzampino</dc:creator>
      <dc:date>2018-08-23T05:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229699#M82510</link>
      <description>&lt;P&gt;Thanks guys. I got the whitelist filter as mentioned by &lt;A rel="user" href="https://community.cloudera.com/users/43327/pzampino.html" nodeid="43327"&gt;@Phil Zampino&lt;/A&gt; and updated it as my need. Then knox allowed my requests.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:51:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229699#M82510</guid>
      <dc:creator>jiangok2006</dc:creator>
      <dc:date>2018-08-24T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229700#M82511</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18745/jiangok2006.html" nodeid="18745"&gt;@Lian Jiang&lt;/A&gt; Can you explain why the default whitelist was not working for your deployment?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 09:26:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229700#M82511</guid>
      <dc:creator>pzampino</dc:creator>
      <dc:date>2018-08-24T09:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229701#M82512</link>
      <description>&lt;P&gt;The domain name used by hadoop hosts and the one used by the load balancer are different. DEFAULT setting will use the load balancer's domain to construct whitelist filter. I need to update the whitelist filter to use hadoop hosts' domain name instead. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 03:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229701#M82512</guid>
      <dc:creator>jiangok2006</dc:creator>
      <dc:date>2018-08-25T03:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229702#M82513</link>
      <description>&lt;P&gt;Thank you for following up. That's what I suspected, and it's good to document it here for future reference.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 04:00:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229702#M82513</guid>
      <dc:creator>pzampino</dc:creator>
      <dc:date>2018-08-25T04:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229703#M82514</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/43327/pzampino.html" nodeid="43327"&gt;@Phil Zampino&lt;/A&gt; &lt;/P&gt;&lt;P&gt;i have similar problem. finally what do you change ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 16:44:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229703#M82514</guid>
      <dc:creator>abbas_kurdistan</dc:creator>
      <dc:date>2019-01-30T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229704#M82515</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/78461/abbasmohammadnezad.html" nodeid="78461"&gt;@abbas mohammadnejad&lt;/A&gt; You have to explicitly set the gateway.dispatch.whitelist property in gateway-site.xml, such that the pattern will match the endpoint address.</description>
      <pubDate>Thu, 31 Jan 2019 01:41:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229704#M82515</guid>
      <dc:creator>pzampino</dc:creator>
      <dc:date>2019-01-31T01:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229705#M82516</link>
      <description>&lt;P&gt;what did you write in &lt;/P&gt;&lt;PRE&gt;gateway.dispatch.whitelist&lt;/PRE&gt;&lt;P&gt;???&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 15:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229705#M82516</guid>
      <dc:creator>gorkazar7</dc:creator>
      <dc:date>2019-05-20T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229706#M82517</link>
      <description>&lt;P&gt;I have fill that property with&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;gateway.dispatch.whitelist --&amp;gt; ^https?:\/\/(my.domain.com|127\.0\.0\.1|0:0:0:0:0:0:0:1|::1):[0-9].*$&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But i have all the time the same error&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ERROR knox.gateway (GatewayDispatchFilter.java:isDispatchAllowed(155)) - The dispatch to &lt;A href="http://my.domain.com:50070/webhdfs/v1/" target="_blank"&gt;http://my.domain.com:50070/webhdfs/v1/&lt;/A&gt; was disallowed because it fails the dispatch whitelist validation. See documentation for dispatch whitelisting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 22:58:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229706#M82517</guid>
      <dc:creator>gorkazar7</dc:creator>
      <dc:date>2019-05-20T22:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229707#M82518</link>
      <description>&lt;P&gt;I ran into a similar issue to this as well. It looks like when it derives the RegEX based off the DEFAULT. We found that it used the URL from the Provider we used setting up the SSO client we had typed in just the Hostname for the Knox Server. It then resulted in the following Default white list:&lt;/P&gt;&lt;PRE&gt;INFO &amp;nbsp;knox.gateway (WhitelistUtils.java:getDispatchWhitelist(63)) - Applying a derived dispatch whitelist because none is configured in gateway-site: ^/.*$;^https?://ambari30l:[0-9]+/?.*$&lt;/PRE&gt;&lt;P&gt;After redoing the SSO setup with the FQDN for the host it resolved the "DEFAULT" Lookup and was able to find the hosts properly.&lt;/P&gt;&lt;PRE&gt;INFO &amp;nbsp;knox.gateway (WhitelistUtils.java:getDispatchWhitelist(63)) - Applying a derived dispatch whitelist because none is configured in gateway-site: ^/.*$;^https?://ambari30l.mydomain.com:[0-9]+/?.*$&lt;/PRE&gt;&lt;P&gt;Hopefully this help others in troubleshooting this issue in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 21:25:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/229707#M82518</guid>
      <dc:creator>ssummers</dc:creator>
      <dc:date>2019-06-13T21:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: HDP3.0: knox fails to dispatch webhdfs request due to whitelist validation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/360493#M82519</link>
      <description>&lt;P&gt;Ssumers,&lt;/P&gt;&lt;P&gt;Can you please share the value you added in&amp;nbsp;gateway.dispatch.whitelist?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 20:07:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP3-0-knox-fails-to-dispatch-webhdfs-request-due-to/m-p/360493#M82519</guid>
      <dc:creator>khannanitish00</dc:creator>
      <dc:date>2023-01-03T20:07:19Z</dc:date>
    </item>
  </channel>
</rss>

