Repository: hbase Updated Branches: refs/heads/master 435104af7 -> 9a1aff447
HBASE-17514 emit a warning if thrift1 proxy user is configured but hbase.regionserver.thrift.http is not Signed-off-by: Sean Busbey <bus...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9a1aff44 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9a1aff44 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9a1aff44 Branch: refs/heads/master Commit: 9a1aff447e908c9de351a4f45b869b016ad7821b Parents: 435104a Author: lv zehui <magica...@gmail.com> Authored: Sat Apr 22 21:20:00 2017 +0800 Committer: Sean Busbey <bus...@apache.org> Committed: Mon Apr 24 11:33:27 2017 -0500 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/9a1aff44/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java ---------------------------------------------------------------------- diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java index 0829188..6a074fd 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java @@ -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")) {