<?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 Custom service and changing configuration of 'included' hbase-site.xml in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228460#M63937</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add an additional regionserver to a (HBase) cluster. I have the following metainfo.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;metainfo&amp;gt;
    &amp;lt;schemaVersion&amp;gt;2.0&amp;lt;/schemaVersion&amp;gt;
    &amp;lt;services&amp;gt;
        &amp;lt;service&amp;gt;
            &amp;lt;name&amp;gt;RS_HBASE_01&amp;lt;/name&amp;gt;
            &amp;lt;displayName&amp;gt;RS-HBASE-01&amp;lt;/displayName&amp;gt;
            &amp;lt;comment&amp;gt;Additional Regionserver on a host&amp;lt;/comment&amp;gt;
            &amp;lt;version&amp;gt;1.1.2&amp;lt;/version&amp;gt;
            &amp;lt;components&amp;gt;
                &amp;lt;component&amp;gt;
                    &amp;lt;name&amp;gt;RS_HBASE_01&amp;lt;/name&amp;gt;
                    &amp;lt;displayName&amp;gt;RS-01&amp;lt;/displayName&amp;gt;
                    &amp;lt;category&amp;gt;SLAVE&amp;lt;/category&amp;gt;
                    &amp;lt;cardinality&amp;gt;1+&amp;lt;/cardinality&amp;gt;
                    &amp;lt;versionAdvertised&amp;gt;true&amp;lt;/versionAdvertised&amp;gt;
                    &amp;lt;decommissionAllowed&amp;gt;true&amp;lt;/decommissionAllowed&amp;gt;
                    &amp;lt;!-- the default category used to store generated metrics data --&amp;gt;
                    &amp;lt;timelineAppid&amp;gt;HBASE&amp;lt;/timelineAppid&amp;gt;
                    &amp;lt;!-- the list of components that this component depends on --&amp;gt;
                    &amp;lt;dependencies&amp;gt;
                        &amp;lt;dependency&amp;gt;
                            &amp;lt;name&amp;gt;HBASE/HBASE_MASTER&amp;lt;/name&amp;gt;
                            &amp;lt;scope&amp;gt;cluster&amp;lt;/scope&amp;gt;
                            &amp;lt;auto-deploy&amp;gt;
                                &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
                                &amp;lt;!--&amp;lt;co-locate&amp;gt;HBASE/HBASE_MASTER&amp;lt;/co-locate&amp;gt;--&amp;gt;
                            &amp;lt;/auto-deploy&amp;gt;
                        &amp;lt;/dependency&amp;gt;
                        &amp;lt;dependency&amp;gt;
                            &amp;lt;name&amp;gt;HBASE/HBASE_REGIONSERVER&amp;lt;/name&amp;gt;
                            &amp;lt;scope&amp;gt;host&amp;lt;/scope&amp;gt;
                            &amp;lt;auto-deploy&amp;gt;
                                &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
                            &amp;lt;/auto-deploy&amp;gt;
                        &amp;lt;/dependency&amp;gt;
                    &amp;lt;/dependencies&amp;gt;
                    &amp;lt;commandScript&amp;gt;
                        &amp;lt;script&amp;gt;scripts/hbase_regionserver.py&amp;lt;/script&amp;gt;
                        &amp;lt;scriptType&amp;gt;PYTHON&amp;lt;/scriptType&amp;gt;
                        &amp;lt;timeout&amp;gt;1200&amp;lt;/timeout&amp;gt;
                    &amp;lt;/commandScript&amp;gt;
                    &amp;lt;bulkCommands&amp;gt;
                        &amp;lt;displayName&amp;gt;RegionServers&amp;lt;/displayName&amp;gt;
                        &amp;lt;!-- Used by decommission and recommission --&amp;gt;
                        &amp;lt;masterComponent&amp;gt;HBASE/HBASE_MASTER&amp;lt;/masterComponent&amp;gt;
                    &amp;lt;/bulkCommands&amp;gt;
                    &amp;lt;logs&amp;gt;
                        &amp;lt;log&amp;gt;
                            &amp;lt;logId&amp;gt;hbase_regionserver01&amp;lt;/logId&amp;gt;
                            &amp;lt;primary&amp;gt;true&amp;lt;/primary&amp;gt;
                        &amp;lt;/log&amp;gt;
                    &amp;lt;/logs&amp;gt;
                &amp;lt;/component&amp;gt;
            &amp;lt;/components&amp;gt;
            &amp;lt;commandScript&amp;gt;
                &amp;lt;script&amp;gt;scripts/service_check.py&amp;lt;/script&amp;gt;
                &amp;lt;scriptType&amp;gt;PYTHON&amp;lt;/scriptType&amp;gt;
                &amp;lt;timeout&amp;gt;300&amp;lt;/timeout&amp;gt;
            &amp;lt;/commandScript&amp;gt;
            &amp;lt;!-- what other services that should be present on the cluster --&amp;gt;
            &amp;lt;requiredServices&amp;gt;
                &amp;lt;service&amp;gt;ZOOKEEPER&amp;lt;/service&amp;gt;
                &amp;lt;service&amp;gt;HDFS&amp;lt;/service&amp;gt;
                &amp;lt;service&amp;gt;HBASE&amp;lt;/service&amp;gt;
            &amp;lt;/requiredServices&amp;gt;
            &amp;lt;!-- configuration files that are expected by the service (config files owned by other services are specified in this list) --&amp;gt;
            &amp;lt;configuration-dependencies&amp;gt;
                &amp;lt;config-type&amp;gt;core-site&amp;lt;/config-type&amp;gt; &amp;lt;!-- hbase puts core-site in it's folder --&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-policy&amp;lt;/config-type&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-site&amp;lt;/config-type&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-env&amp;lt;/config-type&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-log4j&amp;lt;/config-type&amp;gt;
            &amp;lt;/configuration-dependencies&amp;gt;

        &amp;lt;/service&amp;gt;
    &amp;lt;/services&amp;gt;
&amp;lt;/metainfo&amp;gt;&lt;/PRE&gt;&lt;P&gt;where I define my required services, and also the configuration files I need from the other services.&lt;/P&gt;&lt;P&gt;The installation itself works already, all files/symlinks are created and put into their directoy. &lt;/P&gt;&lt;P&gt;But in order to successfully start up I need some configuration values changed, e.g. hbase.regionserver.port and hbase.regionserver.info.port (within hbase-site.xml) , PID file location, log-file name etc (within hbase-env.sh) .&lt;/P&gt;&lt;P&gt;How can I change the values in the configuration files?&lt;/P&gt;&lt;P&gt;I suppose there is some helper method where I can read the configuration file before starting, and change the values.&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 21:47:28 GMT</pubDate>
    <dc:creator>dp1</dc:creator>
    <dc:date>2017-06-29T21:47:28Z</dc:date>
    <item>
      <title>Custom service and changing configuration of 'included' hbase-site.xml</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228460#M63937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add an additional regionserver to a (HBase) cluster. I have the following metainfo.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;metainfo&amp;gt;
    &amp;lt;schemaVersion&amp;gt;2.0&amp;lt;/schemaVersion&amp;gt;
    &amp;lt;services&amp;gt;
        &amp;lt;service&amp;gt;
            &amp;lt;name&amp;gt;RS_HBASE_01&amp;lt;/name&amp;gt;
            &amp;lt;displayName&amp;gt;RS-HBASE-01&amp;lt;/displayName&amp;gt;
            &amp;lt;comment&amp;gt;Additional Regionserver on a host&amp;lt;/comment&amp;gt;
            &amp;lt;version&amp;gt;1.1.2&amp;lt;/version&amp;gt;
            &amp;lt;components&amp;gt;
                &amp;lt;component&amp;gt;
                    &amp;lt;name&amp;gt;RS_HBASE_01&amp;lt;/name&amp;gt;
                    &amp;lt;displayName&amp;gt;RS-01&amp;lt;/displayName&amp;gt;
                    &amp;lt;category&amp;gt;SLAVE&amp;lt;/category&amp;gt;
                    &amp;lt;cardinality&amp;gt;1+&amp;lt;/cardinality&amp;gt;
                    &amp;lt;versionAdvertised&amp;gt;true&amp;lt;/versionAdvertised&amp;gt;
                    &amp;lt;decommissionAllowed&amp;gt;true&amp;lt;/decommissionAllowed&amp;gt;
                    &amp;lt;!-- the default category used to store generated metrics data --&amp;gt;
                    &amp;lt;timelineAppid&amp;gt;HBASE&amp;lt;/timelineAppid&amp;gt;
                    &amp;lt;!-- the list of components that this component depends on --&amp;gt;
                    &amp;lt;dependencies&amp;gt;
                        &amp;lt;dependency&amp;gt;
                            &amp;lt;name&amp;gt;HBASE/HBASE_MASTER&amp;lt;/name&amp;gt;
                            &amp;lt;scope&amp;gt;cluster&amp;lt;/scope&amp;gt;
                            &amp;lt;auto-deploy&amp;gt;
                                &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
                                &amp;lt;!--&amp;lt;co-locate&amp;gt;HBASE/HBASE_MASTER&amp;lt;/co-locate&amp;gt;--&amp;gt;
                            &amp;lt;/auto-deploy&amp;gt;
                        &amp;lt;/dependency&amp;gt;
                        &amp;lt;dependency&amp;gt;
                            &amp;lt;name&amp;gt;HBASE/HBASE_REGIONSERVER&amp;lt;/name&amp;gt;
                            &amp;lt;scope&amp;gt;host&amp;lt;/scope&amp;gt;
                            &amp;lt;auto-deploy&amp;gt;
                                &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
                            &amp;lt;/auto-deploy&amp;gt;
                        &amp;lt;/dependency&amp;gt;
                    &amp;lt;/dependencies&amp;gt;
                    &amp;lt;commandScript&amp;gt;
                        &amp;lt;script&amp;gt;scripts/hbase_regionserver.py&amp;lt;/script&amp;gt;
                        &amp;lt;scriptType&amp;gt;PYTHON&amp;lt;/scriptType&amp;gt;
                        &amp;lt;timeout&amp;gt;1200&amp;lt;/timeout&amp;gt;
                    &amp;lt;/commandScript&amp;gt;
                    &amp;lt;bulkCommands&amp;gt;
                        &amp;lt;displayName&amp;gt;RegionServers&amp;lt;/displayName&amp;gt;
                        &amp;lt;!-- Used by decommission and recommission --&amp;gt;
                        &amp;lt;masterComponent&amp;gt;HBASE/HBASE_MASTER&amp;lt;/masterComponent&amp;gt;
                    &amp;lt;/bulkCommands&amp;gt;
                    &amp;lt;logs&amp;gt;
                        &amp;lt;log&amp;gt;
                            &amp;lt;logId&amp;gt;hbase_regionserver01&amp;lt;/logId&amp;gt;
                            &amp;lt;primary&amp;gt;true&amp;lt;/primary&amp;gt;
                        &amp;lt;/log&amp;gt;
                    &amp;lt;/logs&amp;gt;
                &amp;lt;/component&amp;gt;
            &amp;lt;/components&amp;gt;
            &amp;lt;commandScript&amp;gt;
                &amp;lt;script&amp;gt;scripts/service_check.py&amp;lt;/script&amp;gt;
                &amp;lt;scriptType&amp;gt;PYTHON&amp;lt;/scriptType&amp;gt;
                &amp;lt;timeout&amp;gt;300&amp;lt;/timeout&amp;gt;
            &amp;lt;/commandScript&amp;gt;
            &amp;lt;!-- what other services that should be present on the cluster --&amp;gt;
            &amp;lt;requiredServices&amp;gt;
                &amp;lt;service&amp;gt;ZOOKEEPER&amp;lt;/service&amp;gt;
                &amp;lt;service&amp;gt;HDFS&amp;lt;/service&amp;gt;
                &amp;lt;service&amp;gt;HBASE&amp;lt;/service&amp;gt;
            &amp;lt;/requiredServices&amp;gt;
            &amp;lt;!-- configuration files that are expected by the service (config files owned by other services are specified in this list) --&amp;gt;
            &amp;lt;configuration-dependencies&amp;gt;
                &amp;lt;config-type&amp;gt;core-site&amp;lt;/config-type&amp;gt; &amp;lt;!-- hbase puts core-site in it's folder --&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-policy&amp;lt;/config-type&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-site&amp;lt;/config-type&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-env&amp;lt;/config-type&amp;gt;
                &amp;lt;config-type&amp;gt;hbase-log4j&amp;lt;/config-type&amp;gt;
            &amp;lt;/configuration-dependencies&amp;gt;

        &amp;lt;/service&amp;gt;
    &amp;lt;/services&amp;gt;
&amp;lt;/metainfo&amp;gt;&lt;/PRE&gt;&lt;P&gt;where I define my required services, and also the configuration files I need from the other services.&lt;/P&gt;&lt;P&gt;The installation itself works already, all files/symlinks are created and put into their directoy. &lt;/P&gt;&lt;P&gt;But in order to successfully start up I need some configuration values changed, e.g. hbase.regionserver.port and hbase.regionserver.info.port (within hbase-site.xml) , PID file location, log-file name etc (within hbase-env.sh) .&lt;/P&gt;&lt;P&gt;How can I change the values in the configuration files?&lt;/P&gt;&lt;P&gt;I suppose there is some helper method where I can read the configuration file before starting, and change the values.&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:47:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228460#M63937</guid>
      <dc:creator>dp1</dc:creator>
      <dc:date>2017-06-29T21:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service and changing configuration of 'included' hbase-site.xml</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228461#M63938</link>
      <description>&lt;P&gt;The &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_command-line-installation/content/ref-9e8edafc-6438-4354-97df-20de0fd55344.1.html"&gt;Set Up Apache HBase Configuration Files&lt;/A&gt; section of the &lt;EM&gt;HDP Command-Line Installation Guide &lt;/EM&gt;might be of some help. Some of the properties related to RegionServers are documented there.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 02:41:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228461#M63938</guid>
      <dc:creator>fwelsch</dc:creator>
      <dc:date>2017-06-30T02:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service and changing configuration of 'included' hbase-site.xml</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228462#M63939</link>
      <description>&lt;P&gt;Thanks for the hint, but I'm looking for a way to change settings of the copied hbase-site.xml and hbase-env.sh file, before it gets started, via python.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 12:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228462#M63939</guid>
      <dc:creator>dp1</dc:creator>
      <dc:date>2017-06-30T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service and changing configuration of 'included' hbase-site.xml</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228463#M63940</link>
      <description>&lt;P&gt;I (kind of) managed to change the files when they get copied during installation, and I'm changing the files after the copy via python.&lt;/P&gt;&lt;P&gt;Anyhow, I'm having another issue now, see my question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/115875/unable-to-determine-stack-version-for-custom-servi.html" target="_blank"&gt;https://community.hortonworks.com/questions/115875/unable-to-determine-stack-version-for-custom-servi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:16:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-service-and-changing-configuration-of-included-hbase/m-p/228463#M63940</guid>
      <dc:creator>dp1</dc:creator>
      <dc:date>2017-07-26T22:16:13Z</dc:date>
    </item>
  </channel>
</rss>

