<?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 balancer  return  1  and not do balancer in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361263#M238542</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101058"&gt;@mingtian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for using Cloudera Community. Based on your Post, We would suggest enabling DEBUG Logging for HMaster (Via HMaster UI To Avoid Any Restart) &amp;amp; trigger the Balancer. Generally, Balancer Algorithm may be deciding against running any Region-Alignment owing to Cost Factor [1]. The HMaster Debug Log would print such Balancer information for your review, upon which the Params discussed in [1] can be tuned to force Balancer, yet the Default Params are generally persisted for most Use-Cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that Balancer Job isn't to merely fit Equal Regions per RegionServer. Balancer consider various Cost as defined by [1] to proceed with Region-Alignment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.html" target="_blank"&gt;StochasticLoadBalancer (Apache HBase 3.0.0-alpha-4-SNAPSHOT API)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 09:47:17 GMT</pubDate>
    <dc:creator>smdas</dc:creator>
    <dc:date>2023-01-13T09:47:17Z</dc:date>
    <item>
      <title>hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361018#M238495</link>
      <description>&lt;P&gt;hi&amp;nbsp; all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;hbase version: cdh 6.2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;balancer config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;property&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="opened"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;name&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;hbase.master.loadbalancer.class&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/name&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;value&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;final&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/final&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;source&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;hbase-default.xml&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/source&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;property&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="opened"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;name&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;hbase.balancer.period&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/name&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;value&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;300000&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;final&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/final&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;source&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;hbase-default.xml&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/source&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;but the balancer not scheduler&amp;nbsp; interval&amp;nbsp; 5min and no error logs&amp;nbsp; and use&amp;nbsp; balancer command in shell&amp;nbsp; will return&amp;nbsp; 1&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;hbase(main):007:0&amp;gt; balancer&lt;BR /&gt;true&lt;BR /&gt;Took 0.0746 seconds&lt;BR /&gt;=&amp;gt; 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;and there any help to fix it ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 09:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361018#M238495</guid>
      <dc:creator>mingtian</dc:creator>
      <dc:date>2023-01-11T09:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361263#M238542</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101058"&gt;@mingtian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for using Cloudera Community. Based on your Post, We would suggest enabling DEBUG Logging for HMaster (Via HMaster UI To Avoid Any Restart) &amp;amp; trigger the Balancer. Generally, Balancer Algorithm may be deciding against running any Region-Alignment owing to Cost Factor [1]. The HMaster Debug Log would print such Balancer information for your review, upon which the Params discussed in [1] can be tuned to force Balancer, yet the Default Params are generally persisted for most Use-Cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that Balancer Job isn't to merely fit Equal Regions per RegionServer. Balancer consider various Cost as defined by [1] to proceed with Region-Alignment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.html" target="_blank"&gt;StochasticLoadBalancer (Apache HBase 3.0.0-alpha-4-SNAPSHOT API)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 09:47:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361263#M238542</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2023-01-13T09:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361287#M238552</link>
      <description>&lt;P&gt;Thanks for the reply, I'll try it&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:25:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361287#M238552</guid>
      <dc:creator>mingtian</dc:creator>
      <dc:date>2023-01-13T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361375#M238572</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101058"&gt;@mingtian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are doing well. We wish to follow-up with you &amp;amp; check if the DEBUG Logging assisted in confirming the reasoning for Balancer Algorithm deciding against Region-Movement. If Yes, Kindly let us know if your Q in the Post has been answered or any further Q remains.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 09:57:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361375#M238572</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2023-01-16T09:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361584#M238630</link>
      <description>&lt;P&gt;hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the log level to debug&amp;nbsp; and&amp;nbsp; run the command `balancer` on the shell&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the debug log&amp;nbsp; was&amp;nbsp; only :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2023-01-18 06:15:18,142 DEBUG org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer: RegionReplicaHostCostFunction not needed&lt;BR /&gt;2023-01-18 06:15:18,142 DEBUG org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer: RegionReplicaRackCostFunction not needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and still not run the balancer&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 06:24:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361584#M238630</guid>
      <dc:creator>mingtian</dc:creator>
      <dc:date>2023-01-18T06:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361587#M238631</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101058"&gt;@mingtian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that Debug Logging won't ensure the Balancer would perform Region Movement, rather the same would confirm if Balancer is running yet the same isn't moving any Region owing to CostFactor. Example: I ensured 1 RegionServer didn't had any Region by RegionMovement &amp;amp; triggered a Balancer, which showed [1] &amp;amp; trigger a Region Movement (Note "Found A Solution That Moves 1 Region"). After the 1st Balancer is Completed, I triggered a 2nd Balancer, which printed [2], wherein the DEBUG report "Skipping Load Balancing".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe your Team would see [2] i.e. Balancer is Skipping any Load Balancing owing to Cost Factor. As such, Your Team can consider the fact that HBase is rejecting Region Movement owing to the fact that any new Region-Movement is "Costlier" than Current Region Placement. Tweaking [3] Cost Parameters including setting "&lt;SPAN&gt;hbase.master.loadbalance.bytable" to "true" should help trigger a Balancer for your Team.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2023-01-18 06:38:33,290 INFO org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer: Finished computing new moving plan. Computation took 95 ms to try 7200 different iterations.  Found a solution that moves 1 regions; Going from a computed imbalance of 0.4961380973335763 to a new imbalance of 0.020487264673311183. funtionCost=RegionCountSkewCostFunction : (multiplier=500.0, imbalance=0.0); PrimaryRegionCountSkewCostFunction : (not needed); MoveCostFunction : (multiplier=7.0, imbalance=0.3333333333333333, need balance); ServerLocalityCostFunction : (multiplier=25.0, imbalance=0.0); RackLocalityCostFunction : (multiplier=15.0, imbalance=0.0); TableSkewCostFunction : (multiplier=35.0, imbalance=0.0); RegionReplicaHostCostFunction : (not needed); RegionReplicaRackCostFunction : (not needed); ReadRequestCostFunction : (multiplier=5.0, imbalance=1.0, need balance); WriteRequestCostFunction : (multiplier=5.0, imbalance=1.0, need balance); MemStoreSizeCostFunction : (multiplier=5.0, imbalance=0.0); StoreFileCostFunction : (multiplier=5.0, imbalance=0.0); &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;[2]&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2023-01-18 06:39:05,365 INFO org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer: Cluster wide - skipping load balancing because weighted average imbalance=0.013858568086431631 &amp;lt;= threshold(0.025). If you want more aggressive balancing, either lower hbase.master.balancer.stochastic.minCostNeedBalance from 0.025 or increase the relative multiplier(s) of the specific cost function(s). functionCost=RegionCountSkewCostFunction : (multiplier=500.0, imbalance=0.0); PrimaryRegionCountSkewCostFunction : (not needed); MoveCostFunction : (multiplier=7.0, imbalance=0.0); ServerLocalityCostFunction : (multiplier=25.0, imbalance=0.0); RackLocalityCostFunction : (multiplier=15.0, imbalance=0.0); TableSkewCostFunction : (multiplier=35.0, imbalance=0.0); RegionReplicaHostCostFunction : (not needed); RegionReplicaRackCostFunction : (not needed); ReadRequestCostFunction : (multiplier=5.0, imbalance=0.6685715976063684, need balance); WriteRequestCostFunction : (multiplier=5.0, imbalance=1.0, need balance); MemStoreSizeCostFunction : (multiplier=5.0, imbalance=0.0); StoreFileCostFunction : (multiplier=5.0, imbalance=0.0); &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[3]&amp;nbsp;&lt;A href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.html" target="_blank"&gt;StochasticLoadBalancer (Apache HBase 3.0.0-alpha-4-SNAPSHOT API)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 06:46:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/361587#M238631</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2023-01-18T06:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: hbase balancer  return  1  and not do balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/365883#M239433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101058"&gt;@mingtian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are doing well. We wish to check if your Q concerning Balancer skipping any Region-Movement has been answered by us. If Yes, Kindly mark the Post as Solved. If No, Feel free to share any Q pertaining to the Post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:41:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-balancer-return-1-and-not-do-balancer/m-p/365883#M239433</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2023-03-10T15:41:03Z</dc:date>
    </item>
  </channel>
</rss>

