<?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: Python cm_api to refresh and deploy the client configuration not working completely in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55191#M60470</link>
    <description>&lt;P&gt;No ideas about what could be happening here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 13:11:40 GMT</pubDate>
    <dc:creator>awsbiddata</dc:creator>
    <dc:date>2017-05-29T13:11:40Z</dc:date>
    <item>
      <title>Python cm_api to refresh and deploy the client configuration not working completely</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/54407#M60468</link>
      <description>&lt;P&gt;Hi Cloudera Gurus!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with AWS and &amp;nbsp;Lambda functions written in Python working with automatization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can add datanodes properly now but, always, after the deploy the configuration for HDFS nd YARN, I need to "refresh the cluster" and I don't know how. I tried the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cms.hosts_start_roles(hosts)

if refresh == True:
    cms.hosts_start_roles(hosts)
    print "Deploying client configuration for HDFS and YARN"
    yarn.deploy_client_config()
    time.sleep(30)
    hdfs.refresh()
    time.sleep(30)
    print "Refresh HDFS nd YARN"
    hdfs.deploy_client_config()
    time.sleep(30)
    yarn.refresh()
    time.sleep(30)
    refresh = False
    print "Finish"&lt;/PRE&gt;&lt;P&gt;I don't know what I am missing but for HDFS is working all perfectly, but not for YARN. Image attached:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-05-04 at 17.29.18.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/2957i9904D2FF862FE60B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2017-05-04 at 17.29.18.png" alt="Screen Shot 2017-05-04 at 17.29.18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what I am missing in my python code?&lt;/P&gt;&lt;P&gt;I am really confused.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:33:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/54407#M60468</guid>
      <dc:creator>awsbiddata</dc:creator>
      <dc:date>2022-09-16T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python cm_api to refresh and deploy the client configuration not working completely</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/54445#M60469</link>
      <description>&lt;P&gt;any help here?&lt;/P&gt;&lt;P&gt;Using CDH 5.10.0&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:25:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/54445#M60469</guid>
      <dc:creator>awsbiddata</dc:creator>
      <dc:date>2017-05-05T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python cm_api to refresh and deploy the client configuration not working completely</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55191#M60470</link>
      <description>&lt;P&gt;No ideas about what could be happening here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 13:11:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55191#M60470</guid>
      <dc:creator>awsbiddata</dc:creator>
      <dc:date>2017-05-29T13:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python cm_api to refresh and deploy the client configuration not working completely</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55198#M60471</link>
      <description>&lt;P&gt;You might want to&amp;nbsp;try&amp;nbsp;refreshing the ResourceManager (RM) from the UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would be going to CM&amp;gt; YARN&amp;gt; Instances&amp;gt; RM&amp;gt; [Actions]&amp;gt; Refresh RM;&lt;/P&gt;&lt;P&gt;With the API this would be Commands&amp;gt;Refresh see [0] and python [1]&lt;/P&gt;&lt;P&gt;"For YARN services, this command should be executed on ResourceManager roles. It refreshes the role's queue and node information."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v16/path__clusters_-clusterName-_services_-serviceName-_roleCommands_refresh.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v16/path__clusters_-clusterName-_services_-serviceName-_roleCommands_refresh.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://github.com/cloudera/cm_api/blob/master/python/src/cm_api/endpoints/services.py#L824-L831" target="_blank"&gt;https://github.com/cloudera/cm_api/blob/master/python/src/cm_api/endpoints/services.py#L824-L831&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 17:24:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55198#M60471</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2017-05-29T17:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python cm_api to refresh and deploy the client configuration not working completely</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55342#M60472</link>
      <description>you are right.&lt;BR /&gt;&lt;BR /&gt;Working now. Thanks for your help!</description>
      <pubDate>Thu, 01 Jun 2017 12:52:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-cm-api-to-refresh-and-deploy-the-client-configuration/m-p/55342#M60472</guid>
      <dc:creator>awsbiddata</dc:creator>
      <dc:date>2017-06-01T12:52:29Z</dc:date>
    </item>
  </channel>
</rss>

