HBASE-8373 Update Rolling Restart documentation (Jean-Marc)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1470373 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4370fd18e4
commit
af33aeefe5
|
@ -451,8 +451,8 @@ false
|
||||||
<programlisting>$ for i in `cat conf/regionservers|sort`; do ./bin/graceful_stop.sh --restart --reload --debug $i; done &> /tmp/log.txt &
|
<programlisting>$ for i in `cat conf/regionservers|sort`; do ./bin/graceful_stop.sh --restart --reload --debug $i; done &> /tmp/log.txt &
|
||||||
</programlisting>
|
</programlisting>
|
||||||
Tail the output of <filename>/tmp/log.txt</filename> to follow the scripts
|
Tail the output of <filename>/tmp/log.txt</filename> to follow the scripts
|
||||||
progress. The above does RegionServers only. Be sure to disable the
|
progress. The above does RegionServers only. The script will also disable the
|
||||||
load balancer before doing the above. You'd need to do the master
|
load balancer before moving the regions. You'd need to do the master
|
||||||
update separately. Do it before you run the above script.
|
update separately. Do it before you run the above script.
|
||||||
Here is a pseudo-script for how you might craft a rolling restart script:
|
Here is a pseudo-script for how you might craft a rolling restart script:
|
||||||
<orderedlist>
|
<orderedlist>
|
||||||
|
@ -471,11 +471,6 @@ false
|
||||||
<para>Restart the Master: <programlisting>$ ./bin/hbase-daemon.sh stop master; ./bin/hbase-daemon.sh start master</programlisting>
|
<para>Restart the Master: <programlisting>$ ./bin/hbase-daemon.sh stop master; ./bin/hbase-daemon.sh start master</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Disable the region balancer:<programlisting>$ echo "balance_switch false" | ./bin/hbase shell</programlisting>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Run the <filename>graceful_stop.sh</filename> script per RegionServer. For example:
|
<para>Run the <filename>graceful_stop.sh</filename> script per RegionServer. For example:
|
||||||
<programlisting>$ for i in `cat conf/regionservers|sort`; do ./bin/graceful_stop.sh --restart --reload --debug $i; done &> /tmp/log.txt &
|
<programlisting>$ for i in `cat conf/regionservers|sort`; do ./bin/graceful_stop.sh --restart --reload --debug $i; done &> /tmp/log.txt &
|
||||||
|
|
Loading…
Reference in New Issue