Configuring HBase Thrift HA in MapR Clusters
AIM
Make
HBase thrift HA with multiple thrift servers as ACTIVE.
Default behavior
If
we have hbase thrift installed in to nodes, one will be shown as active and the
other as standby.
Steps
Make changes in following file in all the hbase thrift server nodes
/opt/mapr/conf/conf.d/warden.hbasethrift.conf
#
# sed -i s/\1.1.1/`cat /opt/mapr/hbase/hbaseversion`/g
/opt/mapr/conf/conf.d/warden.hbasethrift.conf
#
services=hbasethrift:all
service.displayname=HBaseThriftServer
service.command.start=/opt/mapr/hbase/hbase-1.1.1/bin/hbase-daemon.sh
start thrift
service.command.stop=/opt/mapr/hbase/hbase-1.1.1/bin/hbase-daemon.sh
stop thrift
service.command.type=BACKGROUND
service.command.monitorcommand=/opt/mapr/hbase/hbase-1.1.1/bin/hbase-daemon.sh
status thrift
service.port=9090
service.ui.port=9095
service.logs.location=/opt/mapr/hbase/hbase-1.1.1/logs
service.process.type=JAVA
service.alarm.tersename=hbasethrift
service.alarm.label=HbaseThriftServiceDown
Once the changes are made, restart warden in all nodes
service mapr-warden restart
Once the warden comes up, you will see all the thrift
servers in active state.
I have installed hbase thrift in 2 nodes. Below MCS
screenshot shows that hbase thrift is up and running in two nodes.
No comments:
Post a Comment