<?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: Getting HTTP error 404 accessing Hue via Knox in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391241#M247528</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21523"&gt;@caisch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did you add the Hue LB in the Knox Proxy Hosts as mentioned in the documentation?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade-hdp/topics/hue-upg-integrate-hue-knox.html#:~:text=If%20you%20have%20deployed%20a%20Hue%20Load%20Balancer%2C%20then%20you%20must%20specify%20the%20Load%20Balancer%20hostname%20in%20the%20Knox%20Proxy%20Hosts%20field%20by%20clicking%20%2B" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade-hdp/topics/hue-upg-integrate-hue-knox.html#:~:text=If%20you%20have%20deployed%20a%20Hue%20Load%20Balancer%2C%20then%20you%20must%20specify%20the%20Load%20Balancer%20hostname%20in%20the%20Knox%20Proxy%20Hosts%20field%20by%20clicking%20%2B&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By default,&amp;nbsp;Hue will try to close the Impala query when the user leaves the editor page, this will free all the query resources in Impala, but also make its results inaccessible, however, if you want to&amp;nbsp;ensure that Hue close the Impala queries by adding the following settings to the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini configuration property:&lt;BR /&gt;&lt;BR /&gt;[impala]&lt;BR /&gt;close_queries=true&lt;BR /&gt;query_timeout_s=&lt;BR /&gt;session_timeout_s=&lt;/P&gt;&lt;P&gt;By default&amp;nbsp;query_timeout_s=300 and session_timeout_s=900, you can setup those based on your requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 22:31:30 GMT</pubDate>
    <dc:creator>rsanchez</dc:creator>
    <dc:date>2024-07-31T22:31:30Z</dc:date>
    <item>
      <title>Getting HTTP error 404 accessing Hue via Knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/389232#M246935</link>
      <description>&lt;H3&gt;Support Question&lt;/H3&gt;&lt;P&gt;How to solve the following issue?&lt;/P&gt;&lt;P&gt;We run CDP 7.1.7 SP2 CHF 18.&lt;BR /&gt;We followed Cloudera's description "&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/securing-hue/topics/hue-enabling-knox-sso.html" target="_self"&gt;CDP 7.1.7 / Authenticating Hue users with Knox SSO&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;- The details given below are redacted -&lt;/P&gt;&lt;H3&gt;Issue&lt;/H3&gt;&lt;P&gt;With a newly started browser Knox was called, having no Cookies cached.&lt;/P&gt;&lt;P&gt;When connecting the service&amp;nbsp;&lt;STRONG&gt;Hue&lt;/STRONG&gt;&amp;nbsp;a second time by clicking the appropriate icon in&amp;nbsp;&lt;STRONG&gt;Knox&lt;/STRONG&gt;, it works fine. The URL &lt;A href="https://knox.odl.telekom.de/gateway/Business/hue/hue/editor/?type=impala" target="_blank" rel="noopener"&gt;https://knox.mydomain.com/gateway/Business/hue/hue/editor/?type=impala&lt;/A&gt; is used.&lt;/P&gt;&lt;P&gt;The first connection to &lt;STRONG&gt;Hue&lt;/STRONG&gt; via &lt;STRONG&gt;Knox&lt;/STRONG&gt; fails, and the browser calls the URL &lt;A href="https://knox.odl.telekom.de/gateway/Business/hue/%3FdoAs%3Duserid" target="_blank" rel="noopener"&gt;https://knox.mydomain.com/gateway/Business/hue/%3FdoAs%3Duserid&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;We get an&amp;nbsp;&lt;STRONG&gt;HTTP error 404&lt;/STRONG&gt; (Page not found) with following details:&lt;/P&gt;&lt;TABLE width="565px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="40px"&gt;Request Method:&lt;/TD&gt;&lt;TD width="524.091px"&gt;GET&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;Request URL:&lt;/TD&gt;&lt;TD width="524.091px"&gt;&lt;A href="https://hue_loadbalancer:8888/%3FdoAs%3Duserid?doAs=userid" target="_blank" rel="noopener"&gt;https://hue_loadbalancer.mydomain.com:8888/%3FdoAs%3Duserid?doAs=userid&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;followed by the message&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;Using the URLconf defined in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;desktop.urls, Django tried these URL patterns, in this order:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 1. ^hue/accounts/login [name='desktop_auth_views_dt_login']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 2. ^accounts/login/?$&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 3. ^accounts/logout/?$&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 4. ^profile$&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 5. ^login/oauth/?$&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 102.&amp;nbsp; ^kafka/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;&amp;nbsp; 103.&amp;nbsp; ^static\/(?P&amp;lt;path&amp;gt;.*)$&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;The current path,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;?doAs=userid, didn't match any of these.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H3&gt;Configuration&lt;/H3&gt;&lt;P&gt;Excerpt of XML configuration file of the default topology (we called it "&lt;FONT face="courier new,courier"&gt;Business.xml&lt;/FONT&gt;"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;!--==============================================--&amp;gt;
&amp;lt;!-- DO NOT EDIT. This is an auto-generated file. --&amp;gt;
&amp;lt;!--==============================================--&amp;gt;
&amp;lt;topology&amp;gt;
    &amp;lt;generated&amp;gt;true&amp;lt;/generated&amp;gt;
    &amp;lt;gateway&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;federation&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;SSOCookieProvider&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
            &amp;lt;param&amp;gt;
                &amp;lt;name&amp;gt;sso.authentication.provider.url&amp;lt;/name&amp;gt;
                &amp;lt;value&amp;gt;https://knox_host.mydomain.com:8443/gateway/knoxsso/api/v1/websso&amp;lt;/value&amp;gt;
            &amp;lt;/param&amp;gt;
        &amp;lt;/provider&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;identity-assertion&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;HadoopGroupProvider&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
            &amp;lt;param&amp;gt;
                &amp;lt;name&amp;gt;CENTRAL_GROUP_CONFIG_PREFIX&amp;lt;/name&amp;gt;
                &amp;lt;value&amp;gt;gateway.group.config.&amp;lt;/value&amp;gt;
            &amp;lt;/param&amp;gt;
        &amp;lt;/provider&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;XASecurePDPKnox&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
        &amp;lt;/provider&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;ha&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;HaProvider&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
&amp;lt;!-- ... --&amp;gt;
           &amp;lt;param&amp;gt;
                &amp;lt;name&amp;gt;HUE&amp;lt;/name&amp;gt;
                &amp;lt;value&amp;gt;enabled=true;maxFailoverAttempts=3;failoverSleep=1000;maxRetryAttempts=300;retrySleep=1000&amp;lt;/value&amp;gt;
            &amp;lt;/param&amp;gt;
&amp;lt;!-- ... --&amp;gt;
       &amp;lt;/provider&amp;gt;
    &amp;lt;/gateway&amp;gt;

    &amp;lt;service&amp;gt;
        &amp;lt;role&amp;gt;HUE&amp;lt;/role&amp;gt;
        &amp;lt;url&amp;gt;https://hue_loadbalancer_host.mydomain.com:8888&amp;lt;/url&amp;gt;
        &amp;lt;param&amp;gt;
            &amp;lt;name&amp;gt;httpclient.connectionTimeout&amp;lt;/name&amp;gt;
            &amp;lt;value&amp;gt;5m&amp;lt;/value&amp;gt;
        &amp;lt;/param&amp;gt;
        &amp;lt;param&amp;gt;
            &amp;lt;name&amp;gt;httpclient.socketTimeout&amp;lt;/name&amp;gt;
            &amp;lt;value&amp;gt;5m&amp;lt;/value&amp;gt;
        &amp;lt;/param&amp;gt;
    &amp;lt;/service&amp;gt;
&amp;lt;!-- ... --&amp;gt;
&amp;lt;/topology&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 15:47:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/389232#M246935</guid>
      <dc:creator>caisch</dc:creator>
      <dc:date>2024-06-14T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP error 404 accessing Hue via Knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/389936#M247116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21523"&gt;@caisch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;From your provided settings, I see the port for Load balancer is wrong.&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;role&amp;gt;HUE&amp;lt;/role&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&amp;lt;url&amp;gt;&lt;A href="https://hue_loadbalancer_host.mydomain.com:8888" target="_blank"&gt;https://hue_loadbalancer_host.mydomain.com:8888&lt;/A&gt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The HUE load balancer port has been set to 8888 which is the HUE service port and 8889 is the HUE load balancer port. Kindly change to 8889 and verify .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 16:25:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/389936#M247116</guid>
      <dc:creator>Puni</dc:creator>
      <dc:date>2024-07-05T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP error 404 accessing Hue via Knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391141#M247495</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;changing the ports was not sufficient.&lt;/P&gt;&lt;P&gt;We found out, as long as inside Hue the Impala sessions have not been closed, the first start of Hue with Knox will fail.&lt;/P&gt;&lt;P&gt;So, when we closed them manually, the first start of Hue in Knox is successful.&lt;/P&gt;&lt;P&gt;Any idea on how to configure Hue to close Impala sessions automatically?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:47:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391141#M247495</guid>
      <dc:creator>caisch</dc:creator>
      <dc:date>2024-07-30T08:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP error 404 accessing Hue via Knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391241#M247528</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21523"&gt;@caisch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did you add the Hue LB in the Knox Proxy Hosts as mentioned in the documentation?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade-hdp/topics/hue-upg-integrate-hue-knox.html#:~:text=If%20you%20have%20deployed%20a%20Hue%20Load%20Balancer%2C%20then%20you%20must%20specify%20the%20Load%20Balancer%20hostname%20in%20the%20Knox%20Proxy%20Hosts%20field%20by%20clicking%20%2B" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade-hdp/topics/hue-upg-integrate-hue-knox.html#:~:text=If%20you%20have%20deployed%20a%20Hue%20Load%20Balancer%2C%20then%20you%20must%20specify%20the%20Load%20Balancer%20hostname%20in%20the%20Knox%20Proxy%20Hosts%20field%20by%20clicking%20%2B&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By default,&amp;nbsp;Hue will try to close the Impala query when the user leaves the editor page, this will free all the query resources in Impala, but also make its results inaccessible, however, if you want to&amp;nbsp;ensure that Hue close the Impala queries by adding the following settings to the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini configuration property:&lt;BR /&gt;&lt;BR /&gt;[impala]&lt;BR /&gt;close_queries=true&lt;BR /&gt;query_timeout_s=&lt;BR /&gt;session_timeout_s=&lt;/P&gt;&lt;P&gt;By default&amp;nbsp;query_timeout_s=300 and session_timeout_s=900, you can setup those based on your requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 22:31:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391241#M247528</guid>
      <dc:creator>rsanchez</dc:creator>
      <dc:date>2024-07-31T22:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP error 404 accessing Hue via Knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391570#M247676</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21523"&gt;@caisch&lt;/a&gt;&amp;nbsp;Did any of the responses help resolve your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 05:01:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391570#M247676</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-08-09T05:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP error 404 accessing Hue via Knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391579#M247678</link>
      <description>&lt;P&gt;I think this issue is caused by something else.&lt;BR /&gt;My suspicion is a wrong behavior of&amp;nbsp;&lt;STRONG&gt;org.apache.shiro.web.filter.InvalidRequestFilter&lt;/STRONG&gt; (we are using).&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 08:30:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-HTTP-error-404-accessing-Hue-via-Knox/m-p/391579#M247678</guid>
      <dc:creator>caisch</dc:creator>
      <dc:date>2024-08-09T08:30:21Z</dc:date>
    </item>
  </channel>
</rss>

