<?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: Hbase configuration hbase-site.xml command line in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77124#M80823</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28006"&gt;@yassine24&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shows how to update a service configuration&lt;/P&gt;&lt;P&gt;&lt;A href="http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles" target="_blank"&gt;http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to update the config with the attribute and value.&lt;/P&gt;&lt;P&gt;The configuration is JSON format, but the safety valve you want is in XML format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of how to update a safety valve (hdfs in this case) via REST API is here:&lt;BR /&gt;&lt;BR /&gt;curl -iv -X PUT -H "Content-Type:application/json" -H "Accept:application/json" -d '{"items":[{ "name": "core_site_safety_valve","value": "&amp;lt;property&amp;gt;&amp;lt;name&amp;gt;hadoop.proxyuser.ztsps.users&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&amp;lt;property&amp;gt;&amp;lt;name&amp;gt;hadoop.proxyuser.ztsps.groups&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;"}]}' http://admin:admin@10.1.0.1:7180/api/v12/clusters/cluster/services/hdfs/config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty sure you can pass the JSON as shown above in the -d argument hbase.update_config() or whatever&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 21:40:16 GMT</pubDate>
    <dc:creator>bgooley</dc:creator>
    <dc:date>2018-07-18T21:40:16Z</dc:date>
    <item>
      <title>Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77057#M80817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to implement a method to optimize Hbase with machine learning.&lt;/P&gt;&lt;P&gt;I have to create a dataset for that I have to change severals time the configuration of Hbase&lt;/P&gt;&lt;P&gt;With cloudera manager it is possible via UI but for my data of 250 configuration it's to long to change manually the configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I modify the configuration of Hbase automatically ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a xml file (or json) with the new configuration but I don't find how to upload it to Hbase and Cloudera manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I upload it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:28:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77057#M80817</guid>
      <dc:creator>yassine24</dc:creator>
      <dc:date>2022-09-16T13:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77068#M80818</link>
      <description>&lt;P&gt;You can try using the API&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-14-x/topics/cm_intro_api.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-14-x/topics/cm_intro_api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v19/index.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v19/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 08:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77068#M80818</guid>
      <dc:creator>GeKas</dc:creator>
      <dc:date>2018-07-18T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77087#M80819</link>
      <description>&lt;P&gt;I already used the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I generated a hbase-site.xml with new value for severals parameters.&lt;/P&gt;&lt;P&gt;Now I want to import it into Cloudera Manager with API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am looking for a way to put the xml file into Cloudera Manager without using the Cloudera manager UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the Api I succed to retrieve the attributes : "hbase_service_config_safety_valve". But I&amp;nbsp;don't find how can I&amp;nbsp;modify it in my python code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to put some xml code directly into Cloudera Manager without GUI ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 11:30:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77087#M80819</guid>
      <dc:creator>yassine24</dc:creator>
      <dc:date>2018-07-18T11:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77088#M80820</link>
      <description>&lt;P&gt;From command line I don't know if there is a way to upload xml for a specific service. You can do it for the cluster.&lt;/P&gt;&lt;P&gt;But you should check&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_config.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_config.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_roles_-roleName-_config.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_roles_-roleName-_config.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also modify parameters by using PUT instead of GET&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 11:49:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77088#M80820</guid>
      <dc:creator>GeKas</dc:creator>
      <dc:date>2018-07-18T11:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77089#M80821</link>
      <description>Can you explain me what I have to use for upload xml for the cluster ?&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Wed, 18 Jul 2018 12:45:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77089#M80821</guid>
      <dc:creator>yassine24</dc:creator>
      <dc:date>2018-07-18T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77094#M80822</link>
      <description>&lt;P&gt;My mistake. Cloudera works with json not xml.&lt;/P&gt;&lt;P&gt;Anyhow, to upload complete cluster config you can do it by following &lt;A href="https://gist.github.com/gwenshap/7044525" target="_blank"&gt;https://gist.github.com/gwenshap/7044525&lt;/A&gt; but this is for serious cases.&lt;/P&gt;&lt;P&gt;On the other hand, you can push only HBase configuration with the previous links I send you. You just have to prepare config in json format.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:25:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77094#M80822</guid>
      <dc:creator>GeKas</dc:creator>
      <dc:date>2018-07-18T13:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase configuration hbase-site.xml command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77124#M80823</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28006"&gt;@yassine24&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shows how to update a service configuration&lt;/P&gt;&lt;P&gt;&lt;A href="http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles" target="_blank"&gt;http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to update the config with the attribute and value.&lt;/P&gt;&lt;P&gt;The configuration is JSON format, but the safety valve you want is in XML format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of how to update a safety valve (hdfs in this case) via REST API is here:&lt;BR /&gt;&lt;BR /&gt;curl -iv -X PUT -H "Content-Type:application/json" -H "Accept:application/json" -d '{"items":[{ "name": "core_site_safety_valve","value": "&amp;lt;property&amp;gt;&amp;lt;name&amp;gt;hadoop.proxyuser.ztsps.users&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&amp;lt;property&amp;gt;&amp;lt;name&amp;gt;hadoop.proxyuser.ztsps.groups&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;"}]}' http://admin:admin@10.1.0.1:7180/api/v12/clusters/cluster/services/hdfs/config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty sure you can pass the JSON as shown above in the -d argument hbase.update_config() or whatever&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 21:40:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-configuration-hbase-site-xml-command-line/m-p/77124#M80823</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-07-18T21:40:16Z</dc:date>
    </item>
  </channel>
</rss>

