<?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: How to restart a role of the specified service using CM REST API? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-restart-a-role-of-the-specified-service-using-CM-REST/m-p/28287#M6190</link>
    <description>&lt;P&gt;&lt;SPAN&gt;curl -X POST &amp;nbsp;-H "Content-Type:application/&lt;/SPAN&gt;&lt;SPAN&gt;json" -u admin:admin &amp;nbsp;-d ' { "items" : [ "yarn-NODEMANAGER-&lt;/SPAN&gt;&lt;SPAN&gt;ecaa167810719b1adf26481d06c148&lt;/SPAN&gt;&lt;SPAN&gt;91", "yarn-NODEMANAGER-&lt;/SPAN&gt;&lt;SPAN&gt;4618314a51eefc788471cec21e1c31&lt;/SPAN&gt;&lt;SPAN&gt;64"] }' '&lt;/SPAN&gt;&lt;A href="http://cm-server:7180/api/v10/clusters/cluster/services/yarn/roleCommands/restart" target="_blank"&gt;http://cm-server:7180/api/v10/clusters/cluster/services/yarn/roleCommands/restart&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2015 13:26:23 GMT</pubDate>
    <dc:creator>upo</dc:creator>
    <dc:date>2015-06-08T13:26:23Z</dc:date>
    <item>
      <title>How to restart a role of the specified service using CM REST API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-restart-a-role-of-the-specified-service-using-CM-REST/m-p/28280#M6189</link>
      <description>&lt;P&gt;I just tried these command and failed.&lt;BR /&gt;&lt;STRONG&gt;curl -X POST -H "Content-Type:application/json" -u admin:serving -d ' { "items" : [ { "name" : "yarn-NODEMANAGER-ecaa167810719b1adf26481d06c14891" }, {"name" : "yarn-NODEMANAGER-4618314a51eefc788471cec21e1c3164"} ] }' '&lt;A href="http://cm-server:7180/api/v10/clusters/cluster/services/yarn/roleCommands/restart" target="_blank"&gt;http://cm-server:7180/api/v10/clusters/cluster/services/yarn/roleCommands/restart&lt;/A&gt;'&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;error message below.&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"message" : "Can not deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@5e19f6e5; line: 1, column: 16] (through reference chain: com.cloudera.api.model.ApiRoleNameList[\"items\"])"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;so what's next?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-restart-a-role-of-the-specified-service-using-CM-REST/m-p/28280#M6189</guid>
      <dc:creator>upo</dc:creator>
      <dc:date>2022-09-16T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to restart a role of the specified service using CM REST API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-restart-a-role-of-the-specified-service-using-CM-REST/m-p/28287#M6190</link>
      <description>&lt;P&gt;&lt;SPAN&gt;curl -X POST &amp;nbsp;-H "Content-Type:application/&lt;/SPAN&gt;&lt;SPAN&gt;json" -u admin:admin &amp;nbsp;-d ' { "items" : [ "yarn-NODEMANAGER-&lt;/SPAN&gt;&lt;SPAN&gt;ecaa167810719b1adf26481d06c148&lt;/SPAN&gt;&lt;SPAN&gt;91", "yarn-NODEMANAGER-&lt;/SPAN&gt;&lt;SPAN&gt;4618314a51eefc788471cec21e1c31&lt;/SPAN&gt;&lt;SPAN&gt;64"] }' '&lt;/SPAN&gt;&lt;A href="http://cm-server:7180/api/v10/clusters/cluster/services/yarn/roleCommands/restart" target="_blank"&gt;http://cm-server:7180/api/v10/clusters/cluster/services/yarn/roleCommands/restart&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 13:26:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-restart-a-role-of-the-specified-service-using-CM-REST/m-p/28287#M6190</guid>
      <dc:creator>upo</dc:creator>
      <dc:date>2015-06-08T13:26:23Z</dc:date>
    </item>
  </channel>
</rss>

