<?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 Customize Hbase JVM settings in CDH-5.4.2 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/30997#M7066</link>
    <description>&lt;P&gt;I am trying to enable tje JVM settings for monitoring of HBase performance. Initially I thought this would be a simple change, but I was wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation briefly mentions that the conf files for Hbase follow Hadoop conventions, but that is probably the case if CDH cluster is installed&amp;nbsp;&lt;/P&gt;&lt;P&gt;directly without the Cloudera manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Acorrding to the documentation &lt;A href="http://archive.cloudera.com/cdh5/cdh/5/hbase/book.html#jmx_config" target="_self"&gt;http://archive.cloudera.com/cdh5/cdh/5/hbase/book.html#jmx_config&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the hbase-env.sh file should be modified with these settings&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.authenticate=true                  \
                       -Dcom.sun.management.jmxremote.password.file=your_password_file   \
                       -Dcom.sun.management.jmxremote.access.file=your_access_file"

export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE "
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS $HBASE_JMX_BASE "&lt;/PRE&gt;&lt;P&gt;The question is which hbase-env.sh should be modified. &amp;nbsp;The problem is that the CDH agent is dynamically managing the configuration of Hbase,&lt;/P&gt;&lt;P&gt;and it seems not to use the /etc/hbase/conf file or&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/etc/hbase/conf.dist/hbase-env.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;From what I've seen the CDH client dynamically generates the config file for Supervisord, the process managing Hbase servers, and also the property files&lt;/P&gt;&lt;P&gt;under&amp;nbsp;/var/run/cloudera-scm-agent/process/ directory. &amp;nbsp;Supervisord sets the environment and invokse the Hbase start-up script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is how to overide the settings that normally would go into hbase-env.sh?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using CHD 5.4.2 on CentOS 6.6 x86_64, and&amp;nbsp;jdk1.7.0_67&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimitar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:38:32 GMT</pubDate>
    <dc:creator>Dimitar</dc:creator>
    <dc:date>2022-09-16T09:38:32Z</dc:date>
    <item>
      <title>Customize Hbase JVM settings in CDH-5.4.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/30997#M7066</link>
      <description>&lt;P&gt;I am trying to enable tje JVM settings for monitoring of HBase performance. Initially I thought this would be a simple change, but I was wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation briefly mentions that the conf files for Hbase follow Hadoop conventions, but that is probably the case if CDH cluster is installed&amp;nbsp;&lt;/P&gt;&lt;P&gt;directly without the Cloudera manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Acorrding to the documentation &lt;A href="http://archive.cloudera.com/cdh5/cdh/5/hbase/book.html#jmx_config" target="_self"&gt;http://archive.cloudera.com/cdh5/cdh/5/hbase/book.html#jmx_config&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the hbase-env.sh file should be modified with these settings&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.authenticate=true                  \
                       -Dcom.sun.management.jmxremote.password.file=your_password_file   \
                       -Dcom.sun.management.jmxremote.access.file=your_access_file"

export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE "
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS $HBASE_JMX_BASE "&lt;/PRE&gt;&lt;P&gt;The question is which hbase-env.sh should be modified. &amp;nbsp;The problem is that the CDH agent is dynamically managing the configuration of Hbase,&lt;/P&gt;&lt;P&gt;and it seems not to use the /etc/hbase/conf file or&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/etc/hbase/conf.dist/hbase-env.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;From what I've seen the CDH client dynamically generates the config file for Supervisord, the process managing Hbase servers, and also the property files&lt;/P&gt;&lt;P&gt;under&amp;nbsp;/var/run/cloudera-scm-agent/process/ directory. &amp;nbsp;Supervisord sets the environment and invokse the Hbase start-up script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is how to overide the settings that normally would go into hbase-env.sh?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using CHD 5.4.2 on CentOS 6.6 x86_64, and&amp;nbsp;jdk1.7.0_67&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimitar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:38:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/30997#M7066</guid>
      <dc:creator>Dimitar</dc:creator>
      <dc:date>2022-09-16T09:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Hbase JVM settings in CDH-5.4.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/31009#M7067</link>
      <description>You can pass those env settings via safety valve. From Cloudera Manager UI, go to hbase configuration page, and find property 'HBase Service Environment Advanced Configuration Snippet (Safety Valve)', add key-value pairs there, save the value, and restart the service.&lt;BR /&gt;&lt;BR /&gt;The settings will impact all roles of the service except client configuration.</description>
      <pubDate>Thu, 20 Aug 2015 21:05:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/31009#M7067</guid>
      <dc:creator>lshi</dc:creator>
      <dc:date>2015-08-20T21:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Hbase JVM settings in CDH-5.4.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/31044#M7068</link>
      <description>&lt;P&gt;It worked, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the benefits of the others not familiar with the security valve role,&lt;/P&gt;&lt;P&gt;the following env settings were added under&amp;nbsp;&lt;EM&gt;Advanced &amp;gt; HBase Service Environment Advanced Configuration Snippet (Safety Valve)&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;HBASE_MASTER_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=10101
HBASE_REGIONSERVER_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=10102&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The usual shell variable substitution is not working in this scenario. Each env variable needs to be explicitly defined.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2015 15:31:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/31044#M7068</guid>
      <dc:creator>Dimitar</dc:creator>
      <dc:date>2015-08-21T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Hbase JVM settings in CDH-5.4.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/45427#M7069</link>
      <description>&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to do simlilar change i.e. change Java option manually, however my problem is bit different. &amp;nbsp;I need to reduce value of parameter "Java Heap Size of HBase RegionServer in Bytes" &amp;nbsp;- only on 1 region server because this host has less memory allocated compare to others. &amp;nbsp;I want this parameter to be in effect &amp;nbsp;only for one host but region server role consistes of 3 hosts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 15:36:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/m-p/45427#M7069</guid>
      <dc:creator>PerlMN</dc:creator>
      <dc:date>2016-09-22T15:36:56Z</dc:date>
    </item>
  </channel>
</rss>

