<?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 Recommendation for proxying Hadoop services without built-in Knox support in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96986#M60262</link>
    <description>&lt;P&gt;Knox 0.6.0 has &lt;A href="https://knox.apache.org/books/knox-0-6-0/user-guide.html#Service+Details"&gt;built-in support&lt;/A&gt; for these 7 services:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;WebHDFS&lt;/LI&gt;&lt;LI&gt;WebHCat&lt;/LI&gt;&lt;LI&gt;Oozie&lt;/LI&gt;&lt;LI&gt;HBase&lt;/LI&gt;&lt;LI&gt;Hive&lt;/LI&gt;&lt;LI&gt;Yarn&lt;/LI&gt;&lt;LI&gt;Storm&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there a recommended approach to expose other services from the gateway host? Particularly web UIs, such as Ambari &amp;amp; Ranger.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2015 01:05:54 GMT</pubDate>
    <dc:creator>amiller</dc:creator>
    <dc:date>2015-11-12T01:05:54Z</dc:date>
    <item>
      <title>Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96986#M60262</link>
      <description>&lt;P&gt;Knox 0.6.0 has &lt;A href="https://knox.apache.org/books/knox-0-6-0/user-guide.html#Service+Details"&gt;built-in support&lt;/A&gt; for these 7 services:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;WebHDFS&lt;/LI&gt;&lt;LI&gt;WebHCat&lt;/LI&gt;&lt;LI&gt;Oozie&lt;/LI&gt;&lt;LI&gt;HBase&lt;/LI&gt;&lt;LI&gt;Hive&lt;/LI&gt;&lt;LI&gt;Yarn&lt;/LI&gt;&lt;LI&gt;Storm&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there a recommended approach to expose other services from the gateway host? Particularly web UIs, such as Ambari &amp;amp; Ranger.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 01:05:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96986#M60262</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2015-11-12T01:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96987#M60263</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/190/kevinminder.html" nodeid="190"&gt;@Kevin Minder&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 01:09:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96987#M60263</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-12T01:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96988#M60264</link>
      <description>&lt;P&gt;I suppose you can use haproxy for example. However if you have kerberos and spnego you would need to add the proxy tickets similar to the oozie ha setup described here in the cloudera doc ( I would use ours if we would actually describe that )  &lt;A href="http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_sg_oozie_ha_kerberos.html" target="_blank"&gt;http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_sg_oozie_ha_kerberos.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 03:06:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96988#M60264</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2015-11-12T03:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96989#M60265</link>
      <description>&lt;P&gt;I figured something like haproxy or nginx would work. Preferably looking for an example config, or if anyone has extended Knox with a custom provider then even better.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 22:46:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96989#M60265</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2015-11-12T22:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96990#M60266</link>
      <description>&lt;P&gt;We would certainly recommend the use of Knox's extensibility models to cover any components without coverage before we get there ourselves.  There have been several developed in the community already such as Falcon that we don't yet officially support.  The same goes for UI coverage where the community has added coverage for things like the HDFS and YARN UIs among others.  The &lt;A href="http://knox.apache.org/books/knox-0-6-0/dev-guide.html"&gt;Knox Developer's Guide&lt;/A&gt; is a great resource that the community has used to help them jump start these efforts.  Of course looking at the implementation of the existing integrations is a great place to start as well.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 23:04:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96990#M60266</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2015-11-12T23:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96991#M60267</link>
      <description>&lt;P&gt;The openweathermap example in the Knox Dev Guide looks great as a reference for extending Knox yourself. Do you know where some existing community extensions, like the Falcon or NN/RM UIs, can be found? I checked the Hortonworks Gallery with no luck.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 00:03:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96991#M60267</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2015-11-13T00:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96992#M60268</link>
      <description>&lt;P&gt;These extensions are committed to the Apache Knox repo itself.  They all use the config driven extension model so you need to look in the gateway-service-definitions module.  In particular look in this &lt;A href="https://git-wip-us.apache.org/repos/asf?p=knox.git;a=tree;f=gateway-service-definitions/src/main/resources/services;h=b927c8da5abd572a3a9c23ef710945af33c1db39;hb=HEAD"&gt;directory&lt;/A&gt;.  Now that you mention the openweathermap example, I need to update that to the new configuration based model at least as a comparison to the code based extension.  The developers guide does briefly cover the &lt;A href="http://knox.apache.org/books/knox-0-6-0/dev-guide.html#Service+Definition+Files"&gt;config based extension&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 00:35:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96992#M60268</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2015-11-13T00:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96993#M60269</link>
      <description>&lt;P&gt;I also recently created a &lt;A href="http://kminder.github.io/knox/2015/11/16/adding-a-service-to-knox.html"&gt;blog&lt;/A&gt; related to this.
&lt;A href="http://kminder.github.io/knox/2015/11/16/adding-a-service-to-knox.html" target="_blank"&gt;http://kminder.github.io/knox/2015/11/16/adding-a-service-to-knox.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:08:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96993#M60269</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2015-11-18T23:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96994#M60270</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/190/kevinminder.html" nodeid="190"&gt;@Kevin Minder&lt;/A&gt;  moving to the best answer. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 07:46:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96994#M60270</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-24T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96995#M60271</link>
      <description>&lt;P&gt;For quick reference, here's an example of adding Oozie UI to HDP 2.4 Sandbox:&lt;/P&gt;&lt;P&gt;1. start Sandbox and make sure all non-maintenance services are running&lt;/P&gt;&lt;P&gt;2. add service definition:&lt;/P&gt;&lt;PRE&gt;git clone &lt;A href="https://git-wip-us.apache.org/repos/asf/knox.git" target="_blank"&gt;https://git-wip-us.apache.org/repos/asf/knox.git&lt;/A&gt;
cp -R knox/gateway-service-definitions/src/main/resources/services/oozieui /var/lib/knox/data-2.4.0.0-169/services/
chown -R knox:knox /var/lib/knox/data-2.4.0.0-169/services/oozieui
&lt;/PRE&gt;&lt;P&gt;3. add OOZIEUI service to default.xml topology (Ambari &amp;gt; Knox &amp;gt; Configs &amp;gt; Advanced topology)&lt;/P&gt;&lt;PRE&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;
&lt;/PRE&gt;&lt;P&gt;4. start (or restart) Knox &amp;amp; Demo LDAP (using Ambari)&lt;/P&gt;&lt;P&gt;5. visit &lt;A href="https://localhost:8443/gateway/default/oozie/"&gt;https://localhost:8443/gateway/default/oozie/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 00:46:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96995#M60271</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2016-05-12T00:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96996#M60272</link>
      <description>&lt;P&gt;
	Thanks for sharing that! I followed your instructions and did the same for yarnui (adapting the paths slightly).&lt;/P&gt;&lt;P&gt;
	The root- and logs-redirection works, but many other redirections (especially those with {**} in the end) are not used by Knox.&lt;/P&gt;&lt;P&gt;
	Example: When calling &lt;A href="https://172.18.10.163:8443/gateway/default/yarn,"&gt;https://172.18.10.163:8443/gateway/default/yarn,&lt;/A&gt; the site loads, but the static resources do not load. In /var/log/knox/gateway.log it says:&lt;/P&gt;
&lt;PRE&gt;2016-05-12 11:13:34,109 DEBUG hadoop.gateway (GatewayFilter.java:doFilter(110)) - Received request: GET /yarn
2016-05-12 11:13:34,147 INFO  hadoop.gateway (KnoxLdapRealm.java:getUserDn(556)) - Computed userDn: uid=guest,ou=people,dc=hadoop,dc=apache,dc=org using dnTemplate for principal: guest
2016-05-12 11:13:34,227 INFO  hadoop.gateway (AclsAuthorizationFilter.java:init(62)) - Initializing AclsAuthz Provider for: YARNUI
2016-05-12 11:13:34,228 DEBUG hadoop.gateway (AclsAuthorizationFilter.java:init(70)) - ACL Processing Mode is: AND
2016-05-12 11:13:34,229 DEBUG hadoop.gateway (AclParser.java:parseAcls(59)) - No ACLs found for: YARNUI
2016-05-12 11:13:34,230 INFO  hadoop.gateway (AclsAuthorizationFilter.java:doFilter(85)) - Access Granted: true
2016-05-12 11:13:34,434 DEBUG hadoop.gateway (UrlRewriteProcessor.java:rewrite(155)) - Rewrote URL: &lt;A href="https://172.18.10.163:8443/gateway/default/yarn" target="_blank"&gt;https://172.18.10.163:8443/gateway/default/yarn&lt;/A&gt;, direction: IN via implicit rule: YARNUI/yarn/inbound/root to URL: &lt;A href="http://resourcemanagerhost.local:8088/cluster" target="_blank"&gt;http://resourcemanagerhost.local:8088/cluster&lt;/A&gt;
	[...]
2016-05-12 11:13:35,074 DEBUG hadoop.gateway (GatewayFilter.java:doFilter(110)) - Received request: GET /yarn/static/jquery/jquery-ui-1.9.1.custom.min.js
2016-05-12 11:13:35,417 DEBUG hadoop.gateway (GatewayFilter.java:doFilter(110)) - Received request: GET /yarn/static/jquery/jquery-1.8.2.min.js&lt;/PRE&gt;&lt;P&gt;
	That's the end of file. Nothing is logged after that.&lt;/P&gt;&lt;P&gt;
	I'm using HDP 2.3.4.7 with Knox 0.6.0.&lt;/P&gt;&lt;P&gt;
	I would appreciate your help, &lt;A rel="user" href="https://community.cloudera.com/users/63/amiller.html" nodeid="63"&gt;@Alex Miller&lt;/A&gt; or &lt;A rel="user" href="https://community.cloudera.com/users/190/kevinminder.html" nodeid="190"&gt;@Kevin Minder&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;
	Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 16:30:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96996#M60272</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2016-05-12T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96997#M60273</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10171/benjaminruland.html" nodeid="10171"&gt;@Benjamin R&lt;/A&gt; Does it work if you add a trailing slash?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 23:23:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96997#M60273</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2016-05-12T23:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96998#M60274</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/63/amiller.html" nodeid="63"&gt;@Alex Miller&lt;/A&gt; This makes no difference. Still the page &lt;A href="https://172.18.10.163:8443/gateway/default/yarn/"&gt;https://172.18.10.163:8443/gateway/default/yarn/&lt;/A&gt; is loaded, but static resources or pages like &lt;A href="https://172.18.10.163:8443/gateway/default/yarn/apps/ACCEPTED"&gt;https://172.18.10.163:8443/gateway/default/yarn/apps/ACCEPTED&lt;/A&gt; are not loaded.&lt;/P&gt;&lt;P&gt;edit: I found the error. In my topology file, I previously added a custom stanza (role. SERVICE-TEST) for which I created no service-definition. That made Knox behave weird. After removing that block, the YARN-UI over Knox works.&lt;/P&gt;&lt;P&gt;Thanks, Alex&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:19:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96998#M60274</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2016-05-13T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for proxying Hadoop services without built-in Knox support</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96999#M60275</link>
      <description>&lt;P&gt;If you're looking to improve access to back-end service UI's for the ops team, as opposed to exposing the services to the larger user base, we make use of ssh tunneling via our admin jump hosts to effectively create personal SOCKS proxies for each ops/admin user.&lt;/P&gt;&lt;P&gt;We then use one of the dynamic proxy config plugins in Chrome or Firefox to direct requests to those services based on hostname, or in our case the domain of the hadoop environment.  &lt;/P&gt;&lt;P&gt;This has the advantage of being very transparent and service URL's all tend to resolve correctly , including https based services.  The disadvantage is that the person using this approach needs to know how to setup an ssh tunnel and how to configure their browser to use that tunnel for the Hadoop services.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 07:15:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recommendation-for-proxying-Hadoop-services-without-built-in/m-p/96999#M60275</guid>
      <dc:creator>chris_ottinger</dc:creator>
      <dc:date>2016-06-04T07:15:31Z</dc:date>
    </item>
  </channel>
</rss>

