<?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 - wrong mapping? help will be appriciated in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144061#M106645</link>
    <description>&lt;P&gt;thanks, sure.. I checked the XMLs already. couldn't spot an issue. &lt;/P&gt;&lt;P&gt;&amp;lt;/gateway&amp;gt;&amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;YARNUI&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://my-yarn-server.com:8088&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&amp;lt;/topology&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;role&amp;gt;RESOURCEMANAGER&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://my-rm-server.com:8088/ws&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/gateway&amp;gt;&amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;JOBSTORYUI&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://my-job-history-server.com.ibm.com:19888&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&amp;lt;/topology&amp;gt;&lt;/P&gt;&lt;P&gt;The issues seems to be around those 3, when the root issue looks like coming from the Resource Manager. I tend to believe that when the Resource Manager will act and look as it should, the other will aline as well. &lt;/P&gt;&lt;P&gt;I have the following authorization entries: &lt;/P&gt;&lt;P&gt;&amp;lt;provider&amp;gt;
  &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;
  &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;
  &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;param&amp;gt;
  &amp;lt;name&amp;gt;resourcemanager.acl&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;*;MYPROJECT;*&amp;lt;/value&amp;gt;
  &amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;param&amp;gt;
  &amp;lt;name&amp;gt;yarnui.acl&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;*;MYPROJECT;*&amp;lt;/value&amp;gt;
  &amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;param&amp;gt;
  &amp;lt;name&amp;gt;jobstoryui.acl&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;*;MYPROJECT;*&amp;lt;/value&amp;gt;
  &amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;(I have it for all the services). &lt;/P&gt;&lt;P&gt;I can try to remove authorization from those 3 and see if it changes anything. &lt;/P&gt;&lt;P&gt;Any other thoughts? do you see any issue with the mapping? &lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2016 01:09:05 GMT</pubDate>
    <dc:creator>atokman</dc:creator>
    <dc:date>2016-05-17T01:09:05Z</dc:date>
    <item>
      <title>Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144055#M106639</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I'm running a BigInsights cluster and I have Knox configured with LDAP Authentication and Authorization. &lt;/P&gt;&lt;P&gt;I've noticed that when I go to the ResourceManager UI using the Yarn quick link through Ambari UI and click on the applicationMaster link of a running job, the page doesn't look so good (like a rendering issue) and it states the following at the top: &lt;/P&gt;&lt;P&gt;"This page will not function without javascript enabled. Please enable javascript 
on your browser."&lt;/P&gt;&lt;P&gt;Javascript is enabled on the browser. I actually saw this in another place which turned out to be mapped wrong, so it seems to be a sympton and not the problem. &lt;/P&gt;&lt;P&gt;The thing is that when I try to view the running application details (using the internal link in the application manager) I get a server error, which seems like a mapping issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4186-qfnvw.png" style="width: 1881px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21598i5DC048DE10A71D1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4186-qfnvw.png" alt="4186-qfnvw.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4187-bdicb.png" style="width: 1709px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21599i5034BDC4CC40E2AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4187-bdicb.png" alt="4187-bdicb.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When clicking on the JobID: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4185-iuztb.png" style="width: 908px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21600i4B50F6AC2F285F06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4185-iuztb.png" alt="4185-iuztb.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using direct link with port 8088 works well. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the Knox mapping I'm using:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
&lt;STRONG&gt;  &lt;/STRONG&gt;&amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;NAMENODE&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;hdfs://{{namenode_host}}:{{namenode_rpc_port}}&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;JOBTRACKER&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;rpc://{{rm_host}}:{{jt_rpc_port}}&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;WEBHDFS&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{namenode_host}}:50070/webhdfs&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;WEBHCAT&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{webhcat_server_host}}:{{templeton_port}}/templeton&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;OOZIE&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{oozie_server_host}}:{{oozie_server_port}}/oozie&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;WEBHBASE&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{hbase_master_host}}:60010&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;HIVE&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{hive_server_host}}:{{hive_http_port}}/{{hive_http_path}}&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;RESOURCEMANAGER&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{rm_host}}:{{rm_port}}/ws&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt; 
  &amp;lt;role&amp;gt;HDFSUI&amp;lt;/role&amp;gt; 
  &amp;lt;url&amp;gt;http://{{namenode_host}}:50070&amp;lt;/url&amp;gt; 
  &amp;lt;/service&amp;gt; 
 
  &amp;lt;service&amp;gt; 
  &amp;lt;role&amp;gt;HBASEUI&amp;lt;/role&amp;gt; 
  &amp;lt;url&amp;gt;http://{{hbase_master_host}}:{{hbase_master_ui_port}}&amp;lt;/url&amp;gt; 
  &amp;lt;/service&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;SOLR&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://{{solr_host}}:{{solr_port}}/solr&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; 
  &amp;lt;service&amp;gt; 
  &amp;lt;role&amp;gt;SPARKUI&amp;lt;/role&amp;gt; 
  &amp;lt;url&amp;gt;http://{{spark_historyserver_host}}:{{spark_historyserver_ui_port}}&amp;lt;/url&amp;gt; 
  &amp;lt;/service&amp;gt; 
 
  &amp;lt;service&amp;gt; 
  &amp;lt;role&amp;gt;OOZIEUI&amp;lt;/role&amp;gt; 
  &amp;lt;url&amp;gt;http://{{oozie_server_host}}:{{oozie_server_port}}/oozie&amp;lt;/url&amp;gt; 
  &amp;lt;/service&amp;gt; 
 
  &amp;lt;service&amp;gt; 
  &amp;lt;role&amp;gt;YARNUI&amp;lt;/role&amp;gt; 
  &amp;lt;url&amp;gt;http://&amp;lt;my yarn server&amp;gt;:8088&amp;lt;/url&amp;gt; 
  &amp;lt;/service&amp;gt; 
 
  &amp;lt;service&amp;gt; 
  &amp;lt;role&amp;gt;JOBSTORYUI&amp;lt;/role&amp;gt; 
  &amp;lt;url&amp;gt;http://{{mr_historyserver_address}}&amp;lt;/url&amp;gt; 
  &amp;lt;/service&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;AT &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7107i191784C31FDF7082/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="gltkt.png" title="gltkt.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7109iFA09CA03D5CEBC9E/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="ciedv.png" title="ciedv.png" /&gt;</description>
      <pubDate>Mon, 19 Aug 2019 07:59:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144055#M106639</guid>
      <dc:creator>atokman</dc:creator>
      <dc:date>2019-08-19T07:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144056#M106640</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/10397/atokman.html"&gt;Anat Tokman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/10397/atokman.html"&gt;&lt;/A&gt;Can you let me know the version of AMbari and HDP you are using ?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 12:43:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144056#M106640</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-12T12:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144057#M106641</link>
      <description>&lt;P&gt;He's using IBM BigInsights&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 15:57:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144057#M106641</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-05-12T15:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144058#M106642</link>
      <description>&lt;P&gt;Hi thanks for your quick reply, those are the versions I'm using: &lt;/P&gt;&lt;P&gt;# ambari-server --version
2.1.0&lt;/P&gt;&lt;P&gt;# hadoop version
Hadoop 2.7.1-IBM-8&lt;/P&gt;&lt;P&gt;Just reminding, when I use the direct link to the ResourceManager (not through Knox) it's good, so it must be something with Knox, either mapping or a Java rendering issue that I'm not aware of. &lt;/P&gt;&lt;P&gt;One more important thing that I noticed today - When I go to the quick link from the MapReduce service I'm able to get to the history links (using Knox), so it seems like an issue with Yarn since I see it on the Resource Manager page. &lt;/P&gt;&lt;P&gt;Ideas are welcome. &lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 06:38:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144058#M106642</guid>
      <dc:creator>atokman</dc:creator>
      <dc:date>2016-05-14T06:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144059#M106643</link>
      <description>&lt;P&gt;One more important thing: &lt;/P&gt;&lt;P&gt;about the error (pic with HTTP 404) - I can see that when I manually add  the gateway path to the URL in the error, it works (partially, still with Java error, but it directs to the right place)&lt;/P&gt;&lt;P&gt;So if this is a job URL with an error as in picture: (it launches it when I click on the Job link)&lt;/P&gt;&lt;P&gt;&lt;A href="https://acr041n01cmp.almaden.ibm.com:8443/proxy/application_1463172884925_0003/mapreduce/job/job_1463172884925_0003"&gt;https://myhost:8443/proxy/application_1463172884925_0003/mapreduce/job/job_1463172884925_0003&lt;/A&gt;&lt;/P&gt;&lt;P&gt;adding "/gateway/yarnui/yarn" before proxy brings me to the right place. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;
&lt;A href="https://acr041n01cmp.almaden.ibm.com:8443/proxy/application_1463172884925_0003/mapreduce/job/job_1463172884925_0003"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 07:04:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144059#M106643</guid>
      <dc:creator>atokman</dc:creator>
      <dc:date>2016-05-14T07:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144060#M106644</link>
      <description>&lt;P&gt;The mappings you cited are the ones in Ambari. Based on settings of respective services Ambari will replace {{...}} parameters with real hostnames, ports etc. You can inspect the real values used by Knox by checking files under /etc/knox/conf, like gateway-site.xml and topologies/*.xml files. If some settings are not right you can try to fix them, for example by replace mappings in Ambari with specific values. For example, you can replace {{rm_host}}:{{jt_rpc_port}} with my-rm-fqdn.hadoop.com:{{jt_rpc_port}}, and you can replace the port as well.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 07:25:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144060#M106644</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-14T07:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144061#M106645</link>
      <description>&lt;P&gt;thanks, sure.. I checked the XMLs already. couldn't spot an issue. &lt;/P&gt;&lt;P&gt;&amp;lt;/gateway&amp;gt;&amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;YARNUI&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://my-yarn-server.com:8088&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&amp;lt;/topology&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;role&amp;gt;RESOURCEMANAGER&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://my-rm-server.com:8088/ws&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/gateway&amp;gt;&amp;lt;service&amp;gt;
  &amp;lt;role&amp;gt;JOBSTORYUI&amp;lt;/role&amp;gt;
  &amp;lt;url&amp;gt;http://my-job-history-server.com.ibm.com:19888&amp;lt;/url&amp;gt;
  &amp;lt;/service&amp;gt;&amp;lt;/topology&amp;gt;&lt;/P&gt;&lt;P&gt;The issues seems to be around those 3, when the root issue looks like coming from the Resource Manager. I tend to believe that when the Resource Manager will act and look as it should, the other will aline as well. &lt;/P&gt;&lt;P&gt;I have the following authorization entries: &lt;/P&gt;&lt;P&gt;&amp;lt;provider&amp;gt;
  &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;
  &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;
  &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;param&amp;gt;
  &amp;lt;name&amp;gt;resourcemanager.acl&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;*;MYPROJECT;*&amp;lt;/value&amp;gt;
  &amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;param&amp;gt;
  &amp;lt;name&amp;gt;yarnui.acl&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;*;MYPROJECT;*&amp;lt;/value&amp;gt;
  &amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;param&amp;gt;
  &amp;lt;name&amp;gt;jobstoryui.acl&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;*;MYPROJECT;*&amp;lt;/value&amp;gt;
  &amp;lt;/param&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;(I have it for all the services). &lt;/P&gt;&lt;P&gt;I can try to remove authorization from those 3 and see if it changes anything. &lt;/P&gt;&lt;P&gt;Any other thoughts? do you see any issue with the mapping? &lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 01:09:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144061#M106645</guid>
      <dc:creator>atokman</dc:creator>
      <dc:date>2016-05-17T01:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144062#M106646</link>
      <description>&lt;P&gt;OK, so I found something that looks like an internal mapping error in YARNUI's rewrite.xml file: &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;rule dir="OUT" name="&lt;STRONG&gt;YARNUI/yarn/inbound/jobhistory/logs&lt;/STRONG&gt;" pattern="&lt;STRONG&gt;*1; url=&lt;/STRONG&gt;*://*:*/jobhistory/logs/{**}"&amp;gt;
  &amp;lt;rewrite template="&lt;STRONG&gt;1; url=&lt;/STRONG&gt;/gateway/jobstoryui/jobstory/jobhistory/logs/{**}"/&amp;gt;&lt;/EM&gt;
&amp;lt;/rule&amp;gt;&lt;/P&gt;&lt;P&gt;Is it just me or the mapping is not right? this is the exact URL that
 doesn't generate the gateway path when clicking on the logs from the 
YARN webpage that should pass it to MapReduce.&lt;/P&gt;&lt;P&gt;It also looks like a mix of the IN-OUT syntax. &lt;/P&gt;&lt;P&gt;Those are some other rules which look better: &lt;/P&gt;&lt;P&gt;&amp;lt;rule dir="IN" name="YARNUI/yarn/inbound/resourcemanager/home" pattern="*://*:*/**/yarn/resourcemanager?{scheme}?{host}?{port}"&amp;gt;
  &amp;lt;rewrite template="{scheme}://{host}:{port}/cluster"/&amp;gt;
&amp;lt;/rule&amp;gt;
&amp;lt;rule dir="IN" name="YARNUI/yarn/inbound/logs" pattern="*://*:*/**/yarn/logs?{scheme}?{host}?{port}?{**}"&amp;gt;
  &amp;lt;rewrite template="{scheme}://{host}:{port}/logs/?{**}"/&amp;gt;
&amp;lt;/rule&amp;gt;
&amp;lt;rule dir="IN" name="YARNUI/yarn/inbound/jobhistory/job" pattern="*://*:*/**/yarn/jobhistory/job/{**}?{scheme}?{host}?{port}"&amp;gt;
  &amp;lt;rewrite template="{scheme}://{host}:{port}/jobhistory/job/{**}"/&amp;gt;
&amp;lt;/rule&amp;gt;
&amp;lt;rule dir="IN" name="YARNUI/yarn/inbound/sparkhistory/job" pattern="*://*:*/**/yarn/history/{**}?{**}?{scheme}?{host}?{port}"&amp;gt;
  &amp;lt;rewrite template="{scheme}://{host}:{port}/history/{**}?{**}"/&amp;gt;
&amp;lt;/rule&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;rule dir="OUT" name="YARNUI/yarn/outbound/headers/logs/location"&amp;gt;
  &amp;lt;match pattern="{scheme}://{host}:{port}/logs/?{**}"/&amp;gt;
  &amp;lt;rewrite template="{$frontend[url]}/yarn/logs?{scheme}?host={$hostmap(host)}?{port}?{**}"/&amp;gt;
&amp;lt;/rule&amp;gt;
&amp;lt;rule dir="OUT" name="YARNUI/yarn/outbound/logs/files" pattern="/logs/{**}"&amp;gt;
  &amp;lt;rewrite template="{$frontend[url]}/yarn/logs/{**}"/&amp;gt;
&amp;lt;/rule&amp;gt;
&amp;lt;rule dir="OUT" name="YARNUI/yarn/outbound/static" pattern="/static/{**}"&amp;gt;
  &amp;lt;rewrite template="{$frontend[url]}/yarn/static/{**}"/&amp;gt;&lt;/P&gt;
&lt;P&gt;Can anyone let me know what should be the correct mapping for that one? &lt;/P&gt;&lt;P&gt;
Thanks. &lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 00:24:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144062#M106646</guid>
      <dc:creator>atokman</dc:creator>
      <dc:date>2016-05-18T00:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144063#M106647</link>
      <description>&lt;P&gt;Apparently, this is a known bug... I replaced the rewrite.xml with the new one and now it's good. &lt;/P&gt;&lt;P&gt;&lt;A href="http://www-01.ibm.com/support/docview.wss?uid=swg21980169" target="_blank"&gt;http://www-01.ibm.com/support/docview.wss?uid=swg21980169&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope it will help others!  &lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 02:00:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144063#M106647</guid>
      <dc:creator>atokman</dc:creator>
      <dc:date>2016-05-18T02:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Knox - wrong mapping? help will be appriciated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144064#M106648</link>
      <description>&lt;P&gt;Good find! Here's a copy of the workaround:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Replace /var/lib/knox/data/services/yarn-ui/2.7.1/rewrite.xml with the attached rewrite.xml (change ownership to knox:knox)&lt;/LI&gt;&lt;LI&gt;Restart Knox&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Note that "data" might be version-specific (e.g. data-2.4.2.0-258), or you can use /usr/hdp/current/knox-server/data/ instead. The fixed &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/4324-rewrite.xml"&gt;rewrite.xml&lt;/A&gt; is attached.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 02:32:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-wrong-mapping-help-will-be-appriciated/m-p/144064#M106648</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2016-05-19T02:32:01Z</dc:date>
    </item>
  </channel>
</rss>

