Components in HBase on YARN
You can specify the following components (also referred to as "roles") when deploying HBase on YARN via Slider:
HBASE_MASTER
⎯ This corresponds to HBase master process.HBASE_REGIONSERVER
⎯ This corresponds to region server process.HBASE_REST
⎯ This corresponds to REST (aka Stargate) gateway.HBASE_THRIFT
⎯ This corresponds to Thrift gateway.HBASE_THRIFT2
⎯ This corresponds to Thrift2 gateway.
The following is a sample resources.json
file with each of these
roles configured:
{ "schema": "http://example.org/specification/v2.0.0", "metadata": { }, "global": { "yarn.log.include.patterns": "", "yarn.log.exclude.patterns": "", "yarn.log.interval": "0" }, "components": { "HBASE_MASTER": { "yarn.role.priority": "1", "yarn.component.instances": "1" }, "slider-appmaster": { }, "HBASE_REGIONSERVER": { "yarn.role.priority": "2", "yarn.component.instances": "4" }, "HBASE_THRIFT": { "yarn.role.priority": "4", "yarn.component.instances": "1", "yarn.memory": "256" }, "HBASE_THRIFT2": { "yarn.role.priority": "5", "yarn.component.instances": "0", "yarn.memory": "256" }, "HBASE_REST": { "yarn.role.priority": "3", "yarn.component.instances": "1", "yarn.memory": "256" } } }
Note | |
---|---|
Thrift and Thrift2 provide similar functionality. You should use either Thrift or Thrift2, but not both. |