I am trying to configure an hbase client to connect to an HBase that is running in a docker container. Given it is for integration tests purposes, we are fine to put the master and regionserver hardcoded (all of them to the same address).
We use a cloudera distribution, but I guess this should be the same. I have defined the "hbase.master" in the org.apache.hadoop.conf.Configuration
configuration.set("hbase.master", config.getMaster());
and it seems to be accepted (looked other questions here in SO that were mentioning this).
But trying to do similar for the regionserver as explained in http://archive.cloudera.com/cdh5/cdh/5/hbase-0.98.6-cdh5.3.4/book/config.files.html
configuration.set("hbase.regionserver.port", config.getRegionserver());
and I can see that still this is retrieved from Zookeeper as the error shows failure to connect with a socket to 60002 which is the regionserver portnumber (the one I put in the config is a different one which is declared in Docker.