<?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: Managing Replication Using API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384541#M245410</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;May you provide the CDP/CM version and what API are you using as example ?&lt;/P&gt;&lt;P&gt;* Since the jobs execution and jobs are maintained in the DB I would say they should appear in the CM UI, yes.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 22:39:50 GMT</pubDate>
    <dc:creator>FelipeG</dc:creator>
    <dc:date>2024-03-04T22:39:50Z</dc:date>
    <item>
      <title>Managing Replication Using API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384528#M245406</link>
      <description>&lt;P&gt;I'm looking to administer HDFS and Hive replication via API. The replication jobs have been set up. My question is, can these replication jobs be viewed in the Cloudera Manager UI under Replication Policies?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:42:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384528#M245406</guid>
      <dc:creator>naymar</dc:creator>
      <dc:date>2026-04-21T06:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Replication Using API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384541#M245410</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;May you provide the CDP/CM version and what API are you using as example ?&lt;/P&gt;&lt;P&gt;* Since the jobs execution and jobs are maintained in the DB I would say they should appear in the CM UI, yes.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 22:39:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384541#M245410</guid>
      <dc:creator>FelipeG</dc:creator>
      <dc:date>2024-03-04T22:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Replication Using API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384559#M245415</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am using &lt;/SPAN&gt;CM 7.11.3 with CDP 7.1.9 and Cloudera Manager Rest API.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 10:54:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384559#M245415</guid>
      <dc:creator>naymar</dc:creator>
      <dc:date>2024-03-05T10:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Replication Using API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384563#M245417</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98266"&gt;@naymar&lt;/a&gt;&amp;nbsp;after setting up the replication jobs, they should be visible in the CM UI.&lt;/P&gt;&lt;P&gt;In CM version 6.x and 5.15.x, under Backup &amp;gt; Replication Schedules and for CM 7, under&amp;nbsp;&amp;nbsp;Replication &amp;gt; Replication Policies.&lt;/P&gt;&lt;P&gt;They're also stored in the backend DB. You can check them with:&lt;/P&gt;&lt;PRE&gt;SELECT COMMAND_NAME,SERVICE_ID,START_TIME,DISPLAY_NAME,DESCRIPTION FROM COMMAND_SCHEDULES;&lt;/PRE&gt;&lt;P&gt;If you want to check the arguments you set:&lt;/P&gt;&lt;PRE&gt;SELECT COMMAND_NAME,SERVICE_ID,COMMAND_ARGUMENTS,START_TIME,DISPLAY_NAME,DESCRIPTION FROM COMMAND_SCHEDULES;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If you want to check only the HDFS replication schedules:&lt;/P&gt;&lt;PRE&gt;SELECT COMMAND_NAME,SERVICE_ID,COMMAND_ARGUMENTS,START_TIME,DISPLAY_NAME,DESCRIPTION FROM COMMAND_SCHEDULES WHERE COMMAND_NAME='HdfsReplicationCommand';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the below TSB article, you can refer yourself to some of the API used to fetch the replications from the CM UI (:warning:&lt;/img&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: &lt;EM&gt;the TSB will prompt you to enter your Cloudera credentials)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://my.cloudera.com/knowledge/TSB-2024-734-The-Replication-Policies-page-of-Replication?id=382627" target="_blank" rel="noopener"&gt;https://my.cloudera.com/knowledge/TSB-2024-734-The-Replication-Policies-page-of-Replication?id=382627&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, using the URL example, the following&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="fixed_width"&gt;curl&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command should return the history of policies:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X GET “http://hostname:7180/api/v49/clusters/Cluster%201/services/HIVE-1/replications?view=summary" -H "accept: application/json"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the below API should give a you a list of all the replications setup in the CM&lt;/P&gt;&lt;PRE&gt;http[s]://hostname[:port]/api/v49/clusters/&amp;lt;clusterName&amp;gt;/services/&amp;lt;serviceName&amp;gt;/replications&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:56:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384563#M245417</guid>
      <dc:creator>soychago</dc:creator>
      <dc:date>2024-03-05T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Replication Using API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384798#M245487</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98266"&gt;@naymar&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:16:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Managing-Replication-Using-API/m-p/384798#M245487</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-03-08T19:16:13Z</dc:date>
    </item>
  </channel>
</rss>

