HBASE-17514 emit a warning if thrift1 proxy user is configured but hbase.regionserver.thrift.http is not

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
lv zehui 2017-04-22 21:20:00 +08:00 committed by Sean Busbey
parent 435104af70
commit 9a1aff447e
1 changed files with 5 additions and 0 deletions

View File

@ -333,6 +333,11 @@ public class ThriftServerRunner implements Runnable {
this.realUser = userProvider.getCurrent().getUGI();
qop = conf.get(THRIFT_QOP_KEY);
doAsEnabled = conf.getBoolean(THRIFT_SUPPORT_PROXYUSER, false);
if (doAsEnabled) {
if (!conf.getBoolean(USE_HTTP_CONF_KEY, false)) {
LOG.warn("Fail to enable the doAs feature. hbase.regionserver.thrift.http is not configured ");
}
}
if (qop != null) {
if (!qop.equals("auth") && !qop.equals("auth-int")
&& !qop.equals("auth-conf")) {