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:
parent
435104af70
commit
9a1aff447e
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue