<?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: How to access resource manager api in a kerborized cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119290#M47105</link>
    <description>&lt;P&gt;You need to do a kinit first then&lt;/P&gt;&lt;P&gt;and then for example like on webhdfs&lt;/P&gt;&lt;P&gt;curl --negotiate -u :  &lt;A href="http://xxxx.xxxx.xxxx.com:50070/webhdfs/v1/user?op=liststatus" target="_blank"&gt;http://xxxx.xxxx.xxxx.com:50070/webhdfs/v1/user?op=liststatus&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2016 00:31:04 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-11-24T00:31:04Z</dc:date>
    <item>
      <title>How to access resource manager api in a kerborized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119289#M47104</link>
      <description>&lt;P&gt;I am running the below command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -v -u &lt;/STRONG&gt;username&lt;STRONG&gt; -H "Accept: application/json" -X GET
"http://&lt;/STRONG&gt;resource_manager_host&lt;STRONG&gt;:8088/ws/v1/cluster"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ref: &lt;/STRONG&gt;&lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The url &lt;STRONG&gt;&lt;A href="http://resource_manager_host" target="_blank"&gt;http://resource_manager_host&lt;/A&gt;&lt;/STRONG&gt;&lt;STRONG&gt;:8088/ws/v1/cluster&lt;/STRONG&gt; is returning valid results in browser.&lt;/P&gt;&lt;P&gt;I have
also used options like --negotiate, --anyauth but errors out with the same
message &lt;STRONG&gt;"Authentication required"&lt;/STRONG&gt;. The command is able to connect to the server.&lt;/P&gt;&lt;P&gt;=============================================

* About to connect() to tdhfd6n3.thehartford.com
port 8088 (#0)&lt;/P&gt;&lt;P&gt;*  &lt;STRONG&gt;Trying
39.8.32.4... connected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;* Connected to tdhfd6n3.thehartford.com (39.8.32.4)
port 8088 (#0)&lt;/P&gt;&lt;P&gt;&amp;gt; GET /ws/v1/cluster HTTP/1.1&lt;/P&gt;&lt;P&gt;&amp;gt; User-Agent: curl/7.19.7 (x86_64-suse-linux-gnu)
libcurl/7.19.7 OpenSSL/0.9.8j zlib/1.2.7 libidn/1.10&lt;/P&gt;&lt;P&gt;&amp;gt; Host: tdhfd6n3.thehartford.com:8088&lt;/P&gt;&lt;P&gt;&amp;gt; Accept: */*&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;
HTTP/1.1 401 Authentication required&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; Cache-Control: must-revalidate,no-cache,no-store&lt;/P&gt;&lt;P&gt;&amp;lt; Date: Wed, 23 Nov 2016 15:27:54 GMT&lt;/P&gt;&lt;P&gt;&amp;lt; Pragma: no-cache&lt;/P&gt;&lt;P&gt;&amp;lt; Date: Wed, 23 Nov 2016 15:27:54 GMT&lt;/P&gt;&lt;P&gt;&amp;lt; Pragma: no-cache&lt;/P&gt;&lt;P&gt;&amp;lt; Content-Type: text/html; charset=iso-8859-1&lt;/P&gt;&lt;P&gt;&amp;lt; WWW-Authenticate: Negotiate&lt;/P&gt;&lt;P&gt;&amp;lt; Set-Cookie: hadoop.auth=; Path=/; Domain=xyz.com;
Expires=Thu, 01-Jan-1970 00:00:00 GMT; HttpOnly&lt;/P&gt;&lt;P&gt;&amp;lt; Content-Length: 1406&lt;/P&gt;&lt;P&gt;&amp;lt; Server: Jetty(6.1.26.hwx)&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Error 401 Authentication
required&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;h2&lt;STRONG&gt;&amp;gt;HTTP ERROR 401&amp;lt;/h2&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;p&amp;gt;Problem
accessing /ws/v1/cluster. Reason:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;pre&amp;gt; 
Authentication required&amp;lt;/pre&amp;gt;&amp;lt;/p&lt;/STRONG&gt;&amp;gt;&amp;lt;hr
/&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by
Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;
================================================&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 00:28:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119289#M47104</guid>
      <dc:creator>vishalprakash_s</dc:creator>
      <dc:date>2016-11-24T00:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to access resource manager api in a kerborized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119290#M47105</link>
      <description>&lt;P&gt;You need to do a kinit first then&lt;/P&gt;&lt;P&gt;and then for example like on webhdfs&lt;/P&gt;&lt;P&gt;curl --negotiate -u :  &lt;A href="http://xxxx.xxxx.xxxx.com:50070/webhdfs/v1/user?op=liststatus" target="_blank"&gt;http://xxxx.xxxx.xxxx.com:50070/webhdfs/v1/user?op=liststatus&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 00:31:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119290#M47105</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-11-24T00:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to access resource manager api in a kerborized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119291#M47106</link>
      <description>&lt;P&gt;Thanks for the prompt response. The solution worked.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 01:24:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-resource-manager-api-in-a-kerborized-cluster/m-p/119291#M47106</guid>
      <dc:creator>vishalprakash_s</dc:creator>
      <dc:date>2016-11-24T01:24:45Z</dc:date>
    </item>
  </channel>
</rss>

