<?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 Random Authentication in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198634#M76552</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/26225/lukavranjkovic.html"&gt;L V&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To connect to YARN UI through knox default gateway port 8443, create a topology file in /etc/knox/conf/topologies directory and replace the YARN_HOSTNAME and YARN_PORT with relevant values. If your newly created topology is named ui.xml, you can access the YARN UI using Web URL: &lt;STRONG&gt;&lt;A href="https://KNOX_HOST:KNOX_PORT/gateway/ui/yarn/" target="_blank"&gt;https://KNOX_HOST:KNOX_PORT/gateway/ui/yarn/&lt;/A&gt;&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt; &amp;lt;topology&amp;gt;
    &amp;lt;gateway&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Anonymous&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;identity-assertion&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Default&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
        &amp;lt;/provider&amp;gt;
    &amp;lt;/gateway&amp;gt;
   &amp;lt;service&amp;gt;
        &amp;lt;role&amp;gt;YARN&amp;lt;/role&amp;gt;
        &amp;lt;url&amp;gt;http://&amp;lt;YARN_HOSTNAME&amp;gt;:&amp;lt;YARN_PORT&amp;gt;&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;YARN_HOSTNAME&amp;gt;:&amp;lt;YARN_PORT&amp;gt;&amp;lt;/url&amp;gt;
    &amp;lt;/service&amp;gt;
&amp;lt;/topology&amp;gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 10:23:11 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-03-28T10:23:11Z</dc:date>
    <item>
      <title>Knox Random Authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198633#M76551</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have attempted to add the YARN service into Knox Gateway.&lt;/P&gt;&lt;P&gt;These are the settings in my advanced topology xml file:&lt;/P&gt;&lt;PRE&gt;            &amp;lt;service&amp;gt;
                  &amp;lt;role&amp;gt;YARN&amp;lt;/role&amp;gt;
                  &amp;lt;url&amp;gt;http://&amp;lt;HOSTNAME&amp;gt;:8088&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;HOSTNAME&amp;gt;:8088&amp;lt;/url&amp;gt;
            &amp;lt;/service&amp;gt;
&lt;/PRE&gt;&lt;P&gt;- I'm not entirely sure those ports are correct. The configs show &lt;/P&gt;&lt;P&gt;8050 for yarn.resourcemanager.address&lt;/P&gt;&lt;P&gt;8141 for yarn.resourcemanager.admin.address&lt;/P&gt;&lt;P&gt;8088 for yarn.resourcemanager.webapp.address&lt;/P&gt;&lt;P&gt;8090 for yarn.resourcemanager.webapp.https.address&lt;/P&gt;&lt;P&gt;I have also updated the following quicklinks.json files on the Ambari Server Host:&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/stacks/HDP/2.0.6/services/YARN/quicklinks/quicklinks.json
/var/lib/ambari-server/resources/stacks/HDP/2.3/services/YARN/quicklinks/quicklinks.json&lt;/PRE&gt;&lt;P&gt;The config change looks like this:&lt;/P&gt;&lt;PRE&gt; {
        "name": "resourcemanager_ui",
        "label": "ResourceManager UI",
        "requires_user_name": "false",
        "component_name": "RESOURCEMANAGER",
        "url": "https://FQDN(KNOX HOST):8443/gateway/default/yarnui",
        "port":{
          "http_property": "yarn.resourcemanager.webapp.address",
          "http_default_port": "8088",
          "https_property": "yarn.resourcemanager.webapp.https.address",
          "https_default_port": "8090",
          "regex": "\\w*:(\\d+)",
          "site": "yarn-site"
        }
&lt;/PRE&gt;&lt;P&gt;The problem is when I use the URL: &lt;A href="https://&amp;lt;FQDN" target="_blank"&gt;https://&amp;lt;FQDN&lt;/A&gt; KNOX HOST&amp;gt;:8443/gateway/default/yarnui/ &lt;/P&gt;&lt;P&gt;I get a page not found error, although when I use the URL: &lt;A href="https://&amp;lt;FQDN" target="_blank"&gt;https://&amp;lt;FQDN&lt;/A&gt; KNOX HOST&amp;gt;:8443/gateway/default/yarn/&lt;/P&gt;&lt;P&gt;I get a popup asking me for a username and password - I have not set these anywhere. I have also tried admin/admin and admin/admin-password with no luck.&lt;/P&gt;&lt;P&gt;Am I missing something? &lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 09:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198633#M76551</guid>
      <dc:creator>luka_vranjkovic</dc:creator>
      <dc:date>2018-03-28T09:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Random Authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198634#M76552</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/26225/lukavranjkovic.html"&gt;L V&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To connect to YARN UI through knox default gateway port 8443, create a topology file in /etc/knox/conf/topologies directory and replace the YARN_HOSTNAME and YARN_PORT with relevant values. If your newly created topology is named ui.xml, you can access the YARN UI using Web URL: &lt;STRONG&gt;&lt;A href="https://KNOX_HOST:KNOX_PORT/gateway/ui/yarn/" target="_blank"&gt;https://KNOX_HOST:KNOX_PORT/gateway/ui/yarn/&lt;/A&gt;&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt; &amp;lt;topology&amp;gt;
    &amp;lt;gateway&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Anonymous&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;identity-assertion&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Default&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
        &amp;lt;/provider&amp;gt;
    &amp;lt;/gateway&amp;gt;
   &amp;lt;service&amp;gt;
        &amp;lt;role&amp;gt;YARN&amp;lt;/role&amp;gt;
        &amp;lt;url&amp;gt;http://&amp;lt;YARN_HOSTNAME&amp;gt;:&amp;lt;YARN_PORT&amp;gt;&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;YARN_HOSTNAME&amp;gt;:&amp;lt;YARN_PORT&amp;gt;&amp;lt;/url&amp;gt;
    &amp;lt;/service&amp;gt;
&amp;lt;/topology&amp;gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 10:23:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198634#M76552</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-28T10:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Random Authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198635#M76553</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I started up the Knox LDAP Demo and it immediately worked using:&lt;/P&gt;&lt;P&gt;user: guest&lt;/P&gt;&lt;P&gt;password: guest-password&lt;/P&gt;&lt;P&gt;I will try your method without the LDAP demo.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 10:29:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198635#M76553</guid>
      <dc:creator>luka_vranjkovic</dc:creator>
      <dc:date>2018-03-28T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Random Authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198636#M76554</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;That worked perfectly! - If I wish to use LDAP authentication - Do I first need to setup Ambari with LDAP and then specify the following to use the LDAP auth?&lt;/P&gt;&lt;PRE&gt;    &amp;lt;gateway&amp;gt;        
	&amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Anonymous&amp;lt;/name&amp;gt;            
	    &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2018 10:42:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198636#M76554</guid>
      <dc:creator>luka_vranjkovic</dc:creator>
      <dc:date>2018-03-28T10:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Random Authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198637#M76555</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/26225/lukavranjkovic.html"&gt;L V&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Yes, you guessed it right, otherwise, Ambari will faile to authenticate your LDAP users.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-security/content/configuring_ambari_for_ldap_or_active_directory_authentication.html" target="_blank"&gt; Ambari_LDAP&lt;/A&gt;  and  &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/_configure_ambari_to_use_ldap_server.html" target="_blank"&gt; Ambari_LDAPS&lt;BR /&gt;&lt;/A&gt;If my previous answer resolved your  initial problem,please could you Accept the answer by Clicking on Accept button below, That would be great help to Community users to find solution quickly for these kind of errors.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 17:16:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198637#M76555</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-28T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Random Authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198638#M76556</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;What would then be the required changes for the settings below? Will Knox work with AD auth?&lt;/P&gt;&lt;PRE&gt; &amp;lt;provider&amp;gt;
            &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Anonymous&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;identity-assertion&amp;lt;/role&amp;gt;
            &amp;lt;name&amp;gt;Default&amp;lt;/name&amp;gt;
            &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
 &amp;lt;/provider&amp;gt;&amp;lt;br&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Mar 2018 08:03:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-Random-Authentication/m-p/198638#M76556</guid>
      <dc:creator>luka_vranjkovic</dc:creator>
      <dc:date>2018-03-29T08:03:50Z</dc:date>
    </item>
  </channel>
</rss>

