[
https://issues.apache.org/jira/browse/HBASE-26252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17412208#comment-17412208
]
Bryan Beaudreault commented on HBASE-26252:
-------------------------------------------
Thanks for the clarification [~claraxiong]. Let me better explain the workflow
as it exists today and with this change:
*Today*
If you want to make a change to the balancer, you must:
* update hbase-site.xml
* restart your HMaster OR run {{update_configuration '<hmaster server name'>}}
in hbase shell
** If you decide to use {{update_configuration}}, you must figure out the
ServerName for the active master. The only way I know to do this is to look at
tag.serverName in Metrics Dump endpoint, or look in hmaster logs. Both of these
are really annoying to do and not straightforward if you don't know how.
** You may also not even know about {{update_configuration}}
* run the balancer with {{balance}} in hbase shell, or let it run by the
default chore
I don't believe these configs are dynamically reloaded unless you run
update_configuration. Correct me if I'm wrong.
*With this change*
All you have to do at this point is:
* update your hbase-site.xml
* run balancer with {{balance 'reload_configs'}}{{}}
I think this is much more straight forward and it better exposes the fact that
these configs can be reloaded dynamically.
> Add support for reloading balancer configs with BalanceRequest
> --------------------------------------------------------------
>
> Key: HBASE-26252
> URL: https://issues.apache.org/jira/browse/HBASE-26252
> Project: HBase
> Issue Type: Sub-task
> Reporter: Bryan Beaudreault
> Assignee: Bryan Beaudreault
> Priority: Minor
>
> It's currently a pain to iterate on balancer configs. You need to make
> changes in hbase-site.xml, then find the full ServerName for the active
> HMaster, then execute {{update_configuration '<full server name>'}}in the
> shell, then run the balancer.
> Finding the ServerName is actually quite annoying. The best way I've found is
> to look at the JMX dump and find {{tag.serverName}}, but that takes a bunch
> of steps.
> We can make this a good deal more convenient by adding direct support for
> reloading the balancer configs into the {{balance}} command.
> This could look something like:
> {{shell> balance \{RELOAD_CONFIGS => true}}}
> Alternatively, we could add another string arg like:
> {{shell> balance 'reload_config'}}
> Either way, we'd add a new
> {{BalanceRequest$Builder#setReloadConfig(boolean)}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)