<?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 configure hbase replication using python api (cm_api) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/37784#M20738</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to write a script using python api (cm_api) to configure &lt;STRONG&gt;hbase replication&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked over&amp;nbsp;documentation but did not find anything helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:05:25 GMT</pubDate>
    <dc:creator>Gregory Danenberg</dc:creator>
    <dc:date>2022-09-16T10:05:25Z</dc:date>
    <item>
      <title>configure hbase replication using python api (cm_api)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/37784#M20738</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to write a script using python api (cm_api) to configure &lt;STRONG&gt;hbase replication&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked over&amp;nbsp;documentation but did not find anything helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:05:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/37784#M20738</guid>
      <dc:creator>Gregory Danenberg</dc:creator>
      <dc:date>2022-09-16T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: configure hbase replication using python api (cm_api)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/38272#M20739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Gregory,&lt;/P&gt;&lt;P&gt;Do you want to achieve what is documented here?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/documentation/cdh/5-1-x/CDH5-Installation-Guide/cdh5ig_hbase_replication.html" target="_blank"&gt;http://www.cloudera.com/documentation/cdh/5-1-x/CDH5-Installation-Guide/cdh5ig_hbase_replication.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of these steps 1,2,3 are the ones that Cloudera Manager is involved in.&lt;/P&gt;&lt;P&gt;You need to update the config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-_config.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-_config.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And restart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-_commands_restart.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-_commands_restart.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other steps run in the shell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcell&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:30:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/38272#M20739</guid>
      <dc:creator>szama</dc:creator>
      <dc:date>2016-03-03T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: configure hbase replication using python api (cm_api)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/38276#M20740</link>
      <description>&lt;P&gt;One part of HBase Replication is that of turning on configs on the Server end to enable the feature. This can be done via the API exactly like Marcell described.&lt;BR /&gt;&lt;BR /&gt;The other part of replication configs is the peer configuration, but this is not doable via CM API as it is not a service-passed configuration, but more of a runtime one. You will need to use HBase's Java API (ReplicationAdmin class) directly for this: &lt;A href="http://archive.cloudera.com/cdh5/cdh/5/hbase/apidocs/org/apache/hadoop/hbase/client/replication/ReplicationAdmin.html" target="_blank"&gt;http://archive.cloudera.com/cdh5/cdh/5/hbase/apidocs/org/apache/hadoop/hbase/client/replication/ReplicationAdmin.html&lt;/A&gt;. To do this in Python, I'd guess you will need to use Jython or such.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 15:53:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configure-hbase-replication-using-python-api-cm-api/m-p/38276#M20740</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-03-03T15:53:53Z</dc:date>
    </item>
  </channel>
</rss>

