Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2AC218B83 for ; Tue, 24 Nov 2015 14:56:56 +0000 (UTC) Received: (qmail 49744 invoked by uid 500); 24 Nov 2015 14:56:56 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 49709 invoked by uid 500); 24 Nov 2015 14:56:56 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 49692 invoked by uid 99); 24 Nov 2015 14:56:56 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 14:56:56 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 976D12E3D3E; Tue, 24 Nov 2015 14:56:54 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8623011496861547443==" MIME-Version: 1.0 Subject: Re: Review Request 40614: Blueprints: Update default values for HDFS proxyuser.group settings From: "Sumit Mohanty" To: "John Speidel" , "Robert Levas" , "Sandor Magyari" , "Sumit Mohanty" Cc: "Ambari" , "Robert Nettleton" Date: Tue, 24 Nov 2015 14:56:54 -0000 Message-ID: <20151124145654.26798.76715@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Sumit Mohanty" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40614/ X-Sender: "Sumit Mohanty" References: <20151123213800.26797.63717@reviews.apache.org> In-Reply-To: <20151123213800.26797.63717@reviews.apache.org> Reply-To: "Sumit Mohanty" X-ReviewRequest-Repository: ambari --===============8623011496861547443== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40614/#review107790 ----------------------------------------------------------- Ship it! Ship It! - Sumit Mohanty On Nov. 23, 2015, 9:37 p.m., Robert Nettleton wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/40614/ > ----------------------------------------------------------- > > (Updated Nov. 23, 2015, 9:37 p.m.) > > > Review request for Ambari, John Speidel, Robert Levas, Sandor Magyari, and Sumit Mohanty. > > > Bugs: AMBARI-14026 > https://issues.apache.org/jira/browse/AMBARI-14026 > > > Repository: ambari > > > Description > ------- > > The Ambari server handling of proxyuser settings has been updated in the UI's handling of cluster configuration to use the "*" setting for the default group. > > Since the Blueprint configuration processor still handles configuration separately in some respects, this default is now handled differently for the most part in Blueprints, as the Blueprint processor will still set the default to be "users". > For example, the Blueprint processor currently sets the Hive-specific proxyuser group property to: > "hadoop.proxyuser.hive.groups" : "users", > > The Blueprint processor should be updated, such that the default is now "*" > > for this property, and for all other service-specific proxyuser.*.groups properties in core-site.xml. > > Since not all environments include the "users" group, the "*" group is a more valid default value for this property. This change will also bring the Blueprint processor more closely in-line with the behavior of the UI, and so making the configuration more consistent across both options. > > This patch implements the following: > > 1. Modifies the BlueprintConfigurationProcessor to set the proxyuser setting to be * as the default value. As before, any user-defined values will override this default. > 2. Updated the associated unit tests to reflect this change. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java 0138894 > ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java c0a6fbc > > Diff: https://reviews.apache.org/r/40614/diff/ > > > Testing > ------- > > 1. Ran "mvn clean test" in trunk (all passing) > 2. Manually verified that deploying a Hive cluster with my changes applied resulted in the Hive proxyuser.groups setting in core-site having a value of * > > > Thanks, > > Robert Nettleton > > --===============8623011496861547443==--