HBase 1.2.1 standalone in Docker unable to connect HBase 1.2.1 standalone in Docker unable to connect docker docker

HBase 1.2.1 standalone in Docker unable to connect


There are two problems with your Dockerfile:

  1. use hbase master start instead of start-hbase.sh
  2. regionserver is actually not running on 60020

The 2nd problem is not so easy to solve. If run hbase standalone with version >= 1.2.0 (not sure, I'm running 1.2.0), hbase will use ephemeral port instead of the default port or the port you provide in hbase-site.xml which makes it very hard to provide hbase service in docker using the original version.

I add a property named hbase.localcluster.port.ephemeral and managed to build a standalone hbase in docker, which you can reference here.