HBase 1.2.1 standalone in Docker unable to connect
There are two problems with your Dockerfile:
- use
hbase master start
instead ofstart-hbase.sh
- 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.