<?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 how to find  number of CPU core on datanode machine by ambari rest API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-find-number-of-CPU-core-on-datanode-machine-by-ambari/m-p/298057#M218969</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running the following ambari API in order to find the CPU count on data node machine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -H "X-Requested-By: ambari" -u admin:admin -X GET &lt;A href="http://master:8080/api/v1/clusters/hdp_test/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count&amp;amp;host_compnents/HostRoles/component_name.in(DATANODE)" target="_blank"&gt;http://master:8080/api/v1/clusters/hdp_test/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count&amp;amp;host_compnents/HostRoles/component_name.in(DATANODE)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;we get the error about:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "status" : 400,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "The properties [host_compnents/HostRoles/component_name] specified in the request or predicate are not supported for the resource type Host."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The target is to find the number of cpu on data node machine as we can do it on datanode linux machine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nproc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;16&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2020 12:11:13 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2020-06-15T12:11:13Z</dc:date>
    <item>
      <title>how to find  number of CPU core on datanode machine by ambari rest API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-find-number-of-CPU-core-on-datanode-machine-by-ambari/m-p/298057#M218969</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running the following ambari API in order to find the CPU count on data node machine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -H "X-Requested-By: ambari" -u admin:admin -X GET &lt;A href="http://master:8080/api/v1/clusters/hdp_test/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count&amp;amp;host_compnents/HostRoles/component_name.in(DATANODE)" target="_blank"&gt;http://master:8080/api/v1/clusters/hdp_test/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count&amp;amp;host_compnents/HostRoles/component_name.in(DATANODE)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;we get the error about:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "status" : 400,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "The properties [host_compnents/HostRoles/component_name] specified in the request or predicate are not supported for the resource type Host."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The target is to find the number of cpu on data node machine as we can do it on datanode linux machine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nproc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;16&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 12:11:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-find-number-of-CPU-core-on-datanode-machine-by-ambari/m-p/298057#M218969</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-06-15T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to find  number of CPU core on datanode machine by ambari rest API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-find-number-of-CPU-core-on-datanode-machine-by-ambari/m-p/298058#M218970</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the API is&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -sH "X-Requested-By: ambari" -u admin:admin http://AMBARI_SERVER_FQDN:8080/api/v1/hosts/DATA_NODE_FQDN | grep cpu&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 12:23:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-find-number-of-CPU-core-on-datanode-machine-by-ambari/m-p/298058#M218970</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-06-15T12:23:59Z</dc:date>
    </item>
  </channel>
</rss>

