<?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: Using api to configure datanode directories in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Using-api-to-configure-datanode-directories/m-p/354985#M237039</link>
    <description>&lt;P&gt;Hey Pete!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your patience! Sorry, I was away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;Could I impose on you further and and ask how I would do it to individual hosts / roleids?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, I will be happy to help you with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;how I would do it to individual hosts / roleids?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this, You would want to get the hostids from CM-API&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;$ curl -u &amp;lt;admin-user&amp;gt;:&amp;lt;admin-password&amp;gt; &lt;A href="https://community.cloudera.com/" target="_blank"&gt;http://&amp;lt;CM_SERVER_FQDN&amp;gt;:7180/api/v44/hosts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followed by the above, You can try entering replacing the hostId in the items section[0]&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&lt;A href="https://archive.cloudera.com/cm6/6.3.0/generic/jar/cm_api/apidocs/json_ApiRoleList.html" target="_blank"&gt;https://archive.cloudera.com/cm6/6.3.0/generic/jar/cm_api/apidocs/json_ApiRoleList.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 09:59:44 GMT</pubDate>
    <dc:creator>vaishaakb</dc:creator>
    <dc:date>2022-10-17T09:59:44Z</dc:date>
  </channel>
</rss>

