<?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 API + how to verify data node disk by API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-how-to-verify-data-node-disk-by-API/m-p/230013#M72754</link>
    <description>&lt;P&gt;on ambari GUI by clicking on HDFS --&amp;gt; config --&amp;gt; (we can see the data node  folders that actually represented the worker disks)&lt;/P&gt;&lt;P&gt;how to use API in order to capture the number of disks from the blueprint ?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 21:07:04 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-12-19T21:07:04Z</dc:date>
    <item>
      <title>API + how to verify data node disk by API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-how-to-verify-data-node-disk-by-API/m-p/230013#M72754</link>
      <description>&lt;P&gt;on ambari GUI by clicking on HDFS --&amp;gt; config --&amp;gt; (we can see the data node  folders that actually represented the worker disks)&lt;/P&gt;&lt;P&gt;how to use API in order to capture the number of disks from the blueprint ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 21:07:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-how-to-verify-data-node-disk-by-API/m-p/230013#M72754</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-19T21:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to verify data node disk by API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-how-to-verify-data-node-disk-by-API/m-p/230014#M72755</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;Looks like you want to fetch the details of "dfs.datanode.data.dir" property. In that case you can try using the following call.  (please revert back if you are talking about a slightly different property)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Syntax: &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -sH "X-Requested-By: ambari" -u admin:admin -X GET "http://$AMBARI_HOSTNAME:8080/api/v1/clusters/$CLUSTER_NAME/configurations/service_config_versions?service_name=HDFS&amp;amp;is_current=true" | grep "\"dfs.datanode.data.dir\"" &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -sH "X-Requested-By: ambari" -u admin:admin -X GET "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/configurations/service_config_versions?service_name=HDFS&amp;amp;is_current=true" | grep "\"dfs.datanode.data.dir\"" &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;  "dfs.datanode.data.dir" : "/hadoop/hdfs/data",&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please replace the "$AMBARI_HOSTNMAE" and "$CLUSTER_NAME" based on your environment.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 11:29:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-how-to-verify-data-node-disk-by-API/m-p/230014#M72755</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-22T11:29:29Z</dc:date>
    </item>
  </channel>
</rss>

