<?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: Installing multiple Regionserver on one host via Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231913#M61227</link>
    <description>&lt;P&gt;Thanks for the hint. The log files provided me further details, but in the end I ended up with other problems. see my other questions. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 22:18:28 GMT</pubDate>
    <dc:creator>dp1</dc:creator>
    <dc:date>2017-07-26T22:18:28Z</dc:date>
    <item>
      <title>Installing multiple Regionserver on one host via Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231910#M61224</link>
      <description>&lt;P&gt;I managed
to manually get a second RS running on a host with the following changes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt;
Configuration&lt;/P&gt;&lt;P&gt;The
configuration of our first RS on this host lies within
&lt;EM&gt;/usr/hdp/current/hbase-regionserver/conf&lt;/EM&gt;, which actually links to
&lt;EM&gt;/etc/hbase/2.5.3.0-37/0&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;In order to
have a second configuration I copied the '0' folder to '1' in the same parent
folder (same permissions as the '0' folder) and adapted the following
parameters:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;within
hbase-site.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hbase.regionserver.info.port from 16030 to 26130
hbase.regionserver.port from 16020 to 26020&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;within
hbase-env.sh&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;export HBASE_CONF_DIR=${HBASE_CONF_DIR:-/etc/hbase/2.5.3.0-37/1}export HBASE_LOG_DIR=/var/log/hbase/hbase1export HBASE_PID_DIR=/var/run/hbase/hbase1&lt;/PRE&gt;&lt;P&gt;I changed
log and pid directory to a subfolder as the permissions to write are already
set correctly&lt;/P&gt;&lt;P&gt;Adapting
the WAL directory the RS writes to is not necessary, as the port is contained
in the folder, and thus it's unique (I got the information from
&lt;A href="https://amahanty.wordpress.com/2012/11/04/understanding-hbase-files-and-directories" target="_blank"&gt;https://amahanty.wordpress.com/2012/11/04/understanding-hbase-files-and-directories&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt;
Execution&lt;/P&gt;&lt;P&gt;Even though
there's only one hbase-regionserver "folder" within /usr/hdp/current
, this is sufficient, as we can define another configuration folder upon
startup&lt;/P&gt;&lt;P&gt;Based on
the original command that is logged when restarting a RS via Ambari &lt;/P&gt;&lt;PRE&gt;Execute['/usr/hdp/current/hbase-regionserver/bin/hbase-daemon.sh --config /usr/hdp/current/hbase-regionserver/conf start regionserver'] {'not_if': 'ambari-sudo.sh  -H -E test -f /var/run/hbase/hbase-hbase-regionserver.pid &amp;amp;&amp;amp; ps -p `ambari-sudo.sh  -H -E cat /var/run/hbase/hbase-hbase-regionserver.pid` &amp;gt;/dev/null 2&amp;gt;&amp;amp;1',
'user': 'hbase'}&lt;/PRE&gt;&lt;P&gt;I executed
the following:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/hbase-regionserver/bin/hbase-daemon.sh --config /etc/hbase/2.5.3.0-37/1 start regionserver&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt; Finally&lt;/P&gt;&lt;P&gt;Within the
hbase-master web UI I saw the new RS, and after some time, the regions were
automatically distributed to the new RS.&lt;/P&gt;&lt;P&gt;Within the
log file I see &lt;/P&gt;&lt;PRE&gt;impl.MetricsSystemImpl: Error creating sink 'timeline'org.apache.hadoop.metrics2.impl.MetricsConfigException:
Error creating plugin: org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink&lt;/PRE&gt;&lt;P&gt;so probably
I'm missing some metrics configuration, but I haven't taken a look any further
at the moment. Probably ports?&lt;/P&gt;&lt;P&gt;Anyhow, we
can't manage the new RS with Ambari, which makes sense, as Ambari doesn't know
anything about this service.&lt;/P&gt;&lt;P&gt;Well, the
obvious question now is: How can we extend Ambari in order to install further
RS on one host?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Open
questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a)&lt;/STRONG&gt; File
/usr/hdp/current/hbase-regionserver/conf/regionservers&lt;/P&gt;&lt;P&gt;- When
adding an additional RS on a host, would it result in a second entry in the
regionservers file?&lt;/P&gt;&lt;P&gt;- What's
the meaning of this file?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b)&lt;/STRONG&gt;
/etc/hbase/2.5.3.0-37/0&lt;/P&gt;&lt;P&gt;- the
folder '0', what's the meaning behind this 'zero' folder ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;c)&lt;/STRONG&gt; Does the
Ambari design support adding additional RS on one host?&lt;/P&gt;&lt;P&gt;I cloned
the source from &lt;A href="https://git-wip-us.apache.org/repos/asf/ambari.git" target="_blank"&gt;https://git-wip-us.apache.org/repos/asf/ambari.git&lt;/A&gt; and browsed
through the code, checked out the ambari design document etc. and have a basic
overview of the design, really basic (just to underline this)&lt;/P&gt;&lt;P&gt;What I
think right now how it works, and please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;Basically,
when I add a new host, the basic file structure for all services is put on this
host. Only when assigning a component to this newly added host, some magic
happens.&lt;/P&gt;&lt;P&gt;With
'magic' I mean all the operations that need to be done in order to be able to
monitor the component with Ambari.&lt;/P&gt;&lt;P&gt;At this
point I'm not sure where to add some code in order to define a different
configuration folder for the RS. Of course, I also want to be able to
restart/stop/start etc the component via Ambari, and when I make any changes to
the configuration of a RS or HBase itself, the additional RS should also be
considered.&lt;/P&gt;&lt;P&gt;Can you
give me any hints?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 15:29:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231910#M61224</guid>
      <dc:creator>dp1</dc:creator>
      <dc:date>2017-05-16T15:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Installing multiple Regionserver on one host via Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231911#M61225</link>
      <description>&lt;P&gt;Well, I finally got some time to dig a little bit deeper.&lt;/P&gt;&lt;P&gt;I followed the instructions as shown on the wiki. First, &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development&lt;/A&gt; . I installed everything on my Ubuntu machine and did a maven build. &lt;EM&gt;rpm&lt;/EM&gt; was successful, the one with &lt;EM&gt;jdeb&lt;/EM&gt; failed for some projects, as the &lt;EM&gt;plugin jdeb&lt;/EM&gt; was missing. (ambari-funtest, ambari-logsearch, ambari-metrics-grafana, ambari-metrics-storm-sink)&lt;/P&gt;&lt;P&gt;After fixing the issues the maven build was fine on my machine.&lt;/P&gt;&lt;P&gt;Next I tried &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Development+in+Docker"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Development+in+Docker&lt;/A&gt; . With this file the set-up of the container failed, firstly because of &lt;EM&gt;Oracle's JDK&lt;/EM&gt; download issue (had to place it in the directory and transfer it to the docker image with the COPY command), secondly, the &lt;EM&gt;Maven&lt;/EM&gt; version 3.0.5 was not enough, so I changed to the latest, 3.5.0. Anyhow, the maven build that gets executed at the end of the Dockerfile failed for several times for the ambari-server: &lt;/P&gt;&lt;PRE&gt;Caused by: java.lang.OutOfMemoryError: PermGen space&lt;/PRE&gt;&lt;P&gt;I tried with both the trunk and 2.5.0 branch, both times the errors. If there was some error on my side please let me know.&lt;/P&gt;&lt;P&gt;Anyhow, doing something with Docker now is obsolete as it won't compile.&lt;/P&gt;&lt;P&gt;So, this is just some feedback for you. Finally coming to my findings and questions:&lt;/P&gt;&lt;P&gt;Installing HBase is managed by the HDP stack, what I'm not quite sure is, where are the scripts located? The only scripts I see are those located in ambari-server/src/main/resources/common-services - are those the correct ones?&lt;/P&gt;&lt;P&gt;So, as I want to add multiple region servers on one host, would I just add another component referencing new scripts handling the changes I have to make?&lt;/P&gt;&lt;P&gt;Where would I add this component, the ones in the common_scripts folder or do I need to adapt anything in the stack ? If the latter, there is no definition of components, or at least I can't find them.&lt;/P&gt;&lt;P&gt;Thanks for any hints.
&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:45:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231911#M61225</guid>
      <dc:creator>dp1</dc:creator>
      <dc:date>2017-06-06T20:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Installing multiple Regionserver on one host via Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231912#M61226</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/18311/dp.html" nodeid="18311"&gt;@David Pocivalnik&lt;/A&gt;&lt;P&gt;every time recommendation API call is made, new entry for logs is made at path "/var/run/ambari-server/stack-recommendations/" on ambari-server host. there will be several and if you are not certain about the last entry then please move all historical existing entries to different location and then again go through add service wizard to produce a repro. &lt;/P&gt;&lt;P&gt;Entry will have stackadvisor.err and stackadvisor.out files. Please refer them for further debugging the issue. If it's not clear from logs, please compress the directory and post it on this thread, So that we can get more information for debugging purpose.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 03:24:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231912#M61226</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-06-27T03:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Installing multiple Regionserver on one host via Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231913#M61227</link>
      <description>&lt;P&gt;Thanks for the hint. The log files provided me further details, but in the end I ended up with other problems. see my other questions. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:18:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231913#M61227</guid>
      <dc:creator>dp1</dc:creator>
      <dc:date>2017-07-26T22:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Installing multiple Regionserver on one host via Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231914#M61228</link>
      <description>&lt;P&gt;nice post, we tried this and it works like a charm!&lt;/P&gt;&lt;P&gt;we have shared the way we did this here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/linehrr/hbase-multi-hosting"&gt;https://github.com/linehrr/hbase-multi-hosting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hopefully this can help the others who's trying to achieve similar thing.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 23:30:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Installing-multiple-Regionserver-on-one-host-via-Ambari/m-p/231914#M61228</guid>
      <dc:creator>linehrr</dc:creator>
      <dc:date>2019-04-08T23:30:53Z</dc:date>
    </item>
  </channel>
</rss>

