Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 91D18200C73 for ; Wed, 26 Apr 2017 01:49:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 907E1160BB9; Tue, 25 Apr 2017 23:49:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E229D160BB8 for ; Wed, 26 Apr 2017 01:49:03 +0200 (CEST) Received: (qmail 81090 invoked by uid 500); 25 Apr 2017 23:49:02 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 80244 invoked by uid 99); 25 Apr 2017 23:49:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2017 23:49:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9B22CDFF66; Tue, 25 Apr 2017 23:49:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@hbase.apache.org Date: Tue, 25 Apr 2017 23:49:08 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [08/50] [abbrv] hbase git commit: HBASE-17514 emit a warning if thrift1 proxy user is configured but hbase.regionserver.thrift.http is not archived-at: Tue, 25 Apr 2017 23:49:04 -0000 HBASE-17514 emit a warning if thrift1 proxy user is configured but hbase.regionserver.thrift.http is not Signed-off-by: Sean Busbey 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/HBASE-16961 Commit: 9a1aff447e908c9de351a4f45b869b016ad7821b Parents: 435104a Author: lv zehui Authored: Sat Apr 22 21:20:00 2017 +0800 Committer: Sean Busbey 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")) {