private ServletHolder buildHbckServlet() {
    final ResourceConfig config = HbckConfigFactory.createResourceConfig(conf, this);
    return new ServletHolder(new ServletContainer(config));
  }
For compatibility, if failed with regionserver credentials, try the master one
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java