<?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 Is it possible to get Impala hostname or datanodes information using Cloudera Manager API? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-get-Impala-hostname-or-datanodes/m-p/321930#M228611</link>
    <description>&lt;P&gt;Is it possible to get Impala hostname or datanodes information using Cloudera Manager API?&lt;BR /&gt;I'm trying to automate some tests where I require to get the Impala hostname to run some connection checks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont want to hardcode the Impala hostnames in the tests. The tests would run on different environments so would like to find the hostname information or IP address of the configured Impala data nodes from Cloudera Manager API?&lt;BR /&gt;I'm able to get all the hosts IP addresses from the API but cannot filter or query a specific IP belonging to Impala from the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our organisation is using&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;v33 API&lt;/TD&gt;&lt;TD&gt;Cloudera Manager 6.3.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;DevDB&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 15:59:05 GMT</pubDate>
    <dc:creator>devdb</dc:creator>
    <dc:date>2021-08-02T15:59:05Z</dc:date>
    <item>
      <title>Is it possible to get Impala hostname or datanodes information using Cloudera Manager API?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-get-Impala-hostname-or-datanodes/m-p/321930#M228611</link>
      <description>&lt;P&gt;Is it possible to get Impala hostname or datanodes information using Cloudera Manager API?&lt;BR /&gt;I'm trying to automate some tests where I require to get the Impala hostname to run some connection checks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont want to hardcode the Impala hostnames in the tests. The tests would run on different environments so would like to find the hostname information or IP address of the configured Impala data nodes from Cloudera Manager API?&lt;BR /&gt;I'm able to get all the hosts IP addresses from the API but cannot filter or query a specific IP belonging to Impala from the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our organisation is using&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;v33 API&lt;/TD&gt;&lt;TD&gt;Cloudera Manager 6.3.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;DevDB&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 15:59:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-get-Impala-hostname-or-datanodes/m-p/321930#M228611</guid>
      <dc:creator>devdb</dc:creator>
      <dc:date>2021-08-02T15:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get Impala hostname or datanodes information using Cloudera Manager API?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-get-Impala-hostname-or-datanodes/m-p/322009#M228631</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90845"&gt;@devdb&lt;/a&gt;&amp;nbsp;Take a look of this may be it can help :&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.cloudera.com/cm7/7.2.4/generic/jar/cm_api/apidocs/" target="_blank" rel="noopener"&gt;https://archive.cloudera.com/cm7/7.2.4/generic/jar/cm_api/apidocs/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you can get the hosts details from this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://CM-SERVER:7180/api/v19/clusters/cluster1/services" target="_blank" rel="noopener"&gt;http://CM-SERVER:7180/api/v19/clusters/cluster1/services&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;For each ‘hosts’ in&amp;nbsp;&lt;A href="http://cm:7180/api/v19/hosts" target="_blank" rel="noopener noreferrer"&gt;http://cm:7180/api/v19/hosts&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;iterate through the&amp;nbsp;hostId&amp;nbsp;…&lt;/DIV&gt;&lt;PRE&gt;{&lt;BR /&gt;  "items" : [ {&lt;BR /&gt;    "maintenanceOwners" : [ ],&lt;BR /&gt;    "hostId" : "15b5c47f-9156-4347-abd4-efbc79d27ba2",               &amp;lt;=== hostid&lt;BR /&gt;    "ipAddress" : "IP",&lt;BR /&gt;    "hostname" : "host",&lt;/PRE&gt;&lt;DIV class="p-rich_text_section"&gt;&lt;A href="http://cm:7180/api/v19/hosts/15b5c47f-9156-4347-abd4-efbc79d27ba2" target="_blank" rel="noopener noreferrer"&gt;http://cm:7180/api/v19/hosts/15b5c47f-9156-4347-abd4-efbc79d27ba2&lt;/A&gt;. which should give you the&amp;nbsp;roleName&lt;/DIV&gt;&lt;PRE&gt;...&lt;BR /&gt;{&lt;BR /&gt;    "clusterName" : "Cluster 1",&lt;BR /&gt;    "serviceName" : "HDFS-1",&lt;BR /&gt;    "roleName" : "HDFS-1-DATANODE-d1ee4c53b9fbc4786263f0420c5157e8"&lt;BR /&gt;  }, {&lt;BR /&gt;... &lt;/PRE&gt;&lt;DIV class="p-rich_text_section"&gt;using the&amp;nbsp;roleName&lt;/DIV&gt;&lt;PRE&gt;&lt;A href="http://cm:7180/api/v19/clusters/Cluster%201/services/HDFS-1/roles/HDFS-1-DATANODE-d1ee4c53b9fbc4786263f0420c5157e8" target="_blank" rel="noopener noreferrer"&gt;http://cm:7180/api/v19/clusters/Cluster%201/services/HDFS-1/roles/HDFS-1-DATANODE-d1ee4c53b9fbc4786263f0420c5157e8&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also full deployment details&amp;nbsp;http://cm:7180/api/v19/cm/deployment&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:54:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-get-Impala-hostname-or-datanodes/m-p/322009#M228631</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-08-03T14:54:19Z</dc:date>
    </item>
  </channel>
</rss>

