<?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: REST API + how to get the number of CPU on each data node in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234310#M85018</link>
    <description>&lt;P&gt;@Jay chould you please help me with the follwing thred - &lt;A href="https://community.hortonworks.com/questions/226622/rest-api-how-to-verify-the-max-value-for-each-para.html" target="_blank"&gt;https://community.hortonworks.com/questions/226622/rest-api-how-to-verify-the-max-value-for-each-para.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 07:06:53 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-11-19T07:06:53Z</dc:date>
    <item>
      <title>REST API + how to get the number of CPU on each data node</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234308#M85016</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt; how to get the number of CPU on each data node by REST API?&lt;/P&gt;&lt;P&gt;I also tried this but get error about:&lt;/P&gt;&lt;PRE&gt;[root@master02 ~]#  curl -u admin:admin -sS -G "https://master02:8080/api/v1/clusters/HDP/services/HDFS/components/DATANODE" 
curl: (35) SSL received a record that exceeded the maximum permissible length.&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Nov 2018 03:07:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234308#M85016</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-11-19T03:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: REST API + how to get the number of CPU on each data node</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234309#M85017</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try making the following kind of API call:&lt;/P&gt;&lt;PRE&gt;# curl -H "X-Requested-By: ambari" -u admin:admin -X GET "http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count&amp;amp;host_compnents/HostRoles/component_name.in(DATANODE)"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please replace the following (in addition to cre4dentials)&lt;/P&gt;&lt;P&gt;newhwx1.example.com:8080 =&amp;gt; Ambari Server URL&lt;/P&gt;&lt;P&gt;NewCluster =&amp;gt; Your ClusterName&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also if you are running your Abari Server on "HTTPS" secure port then please make sure that you are are appending "-k" in the curl command like:&lt;/P&gt;&lt;PRE&gt;# curl -k -H "X-Requested-By: ambari"  ......&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 05:38:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234309#M85017</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-11-19T05:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST API + how to get the number of CPU on each data node</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234310#M85018</link>
      <description>&lt;P&gt;@Jay chould you please help me with the follwing thred - &lt;A href="https://community.hortonworks.com/questions/226622/rest-api-how-to-verify-the-max-value-for-each-para.html" target="_blank"&gt;https://community.hortonworks.com/questions/226622/rest-api-how-to-verify-the-max-value-for-each-para.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 07:06:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-get-the-number-of-CPU-on-each-data-node/m-p/234310#M85018</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-11-19T07:06:53Z</dc:date>
    </item>
  </channel>
</rss>

