<?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: Spark history UI for Apache knox in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/390672#M247322</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111968"&gt;@TMauran&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Spark experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22324"&gt;@Bharati&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67146"&gt;@jagadeesan&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 20:51:18 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2024-07-19T20:51:18Z</dc:date>
    <item>
      <title>Spark history UI for Apache knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/390582#M247310</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am securing my Spark history UI with Apache knox and am having trouble with the proxied SparkhistoryUI as mentionned in this thread: &lt;A href="https://lists.apache.org/thread/xwzo4g6qk2hqmn62t6p162b8t6l3hldq" target="_blank" rel="noopener"&gt;https://lists.apache.org/thread/xwzo4g6qk2hqmn62t6p162b8t6l3hldq&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I managed to edit the rewrite rules to make the css load on the proxied sparkhistory UI but I am now facing another problem I don' t manage to overcome.&lt;BR /&gt;When the pages loads the js code triggers a jquery call to the api: `$.getJSON(uiRoot + "/api/v1/applications", appParams`&lt;BR /&gt;The problem is that when Knox is proxying Spark history UI this uiRoot is not the right one it's &lt;A href="https://knox-host:8443/api/v1/applications" target="_blank" rel="noopener"&gt;https://knox-host:8443/api/v1/applications&lt;/A&gt; instead of &lt;A href="https://spark-ui-host:18080/api/v1/applications" target="_blank" rel="noopener"&gt;https://spark-ui-host:18080/api/v1/applications&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Apache Knox rewrite rules don't seem to be able to fix that so this is why I am sending a message here to see if any of you have a better idea, maybe something related to the proxy setup.&lt;/P&gt;&lt;P&gt;I tried to set `spark.ui.proxyBase` to the Spark History UI URL and port so that Knox tries to reach it but&lt;/P&gt;&lt;P&gt;I end up with a 302 error `Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at &lt;A href="https://host:18080/api/v1/applications?limit=2147483647&amp;amp;status=completed" target="_blank" rel="noopener"&gt;https://host:18080/api/v1/applications?limit=2147483647&amp;amp;status=completed&lt;/A&gt;. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302.`, and I don' t see anything related to CORS in the SHS configuration.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would love to have any suggestion on why the Spark rules don't work out of the box on Knox or how I could fix that api call.&lt;/P&gt;&lt;P&gt;Thank you very much for your responses&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 07:00:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/390582#M247310</guid>
      <dc:creator>TMauran</dc:creator>
      <dc:date>2024-07-19T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spark history UI for Apache knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/390672#M247322</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111968"&gt;@TMauran&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Spark experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22324"&gt;@Bharati&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67146"&gt;@jagadeesan&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 20:51:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/390672#M247322</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-19T20:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spark history UI for Apache knox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/391082#M247465</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22324"&gt;@Bharati&lt;/a&gt;&amp;nbsp; and&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67146"&gt;@jagadeesan&lt;/a&gt; wondering if you got any ideas about that topic ?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 06:59:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-history-UI-for-Apache-knox/m-p/391082#M247465</guid>
      <dc:creator>TMauran</dc:creator>
      <dc:date>2024-07-29T06:59:27Z</dc:date>
    </item>
  </channel>
</rss>

