Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 B2EC417B1F for ; Tue, 28 Oct 2014 21:50:09 +0000 (UTC) Received: (qmail 36159 invoked by uid 500); 28 Oct 2014 21:50:09 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 36094 invoked by uid 500); 28 Oct 2014 21:50:09 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 36067 invoked by uid 99); 28 Oct 2014 21:50:08 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2014 21:50:08 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 6A0341DF846; Tue, 28 Oct 2014 21:50:12 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6197472521700465069==" MIME-Version: 1.0 Subject: Re: Review Request 27292: HIVE-8634: HiveServer2 fair scheduler queue mapping doesn't handle the secondary groups rules correctly From: "Mohit Sabharwal" To: "Mohit Sabharwal" , "Brock Noland" Cc: "Prasad Mujumdar" , "hive" Date: Tue, 28 Oct 2014 21:50:12 -0000 Message-ID: <20141028215012.7137.70009@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Mohit Sabharwal" X-ReviewGroup: hive X-ReviewRequest-URL: https://reviews.apache.org/r/27292/ X-Sender: "Mohit Sabharwal" References: <20141028174831.7137.55111@reviews.apache.org> In-Reply-To: <20141028174831.7137.55111@reviews.apache.org> Reply-To: "Mohit Sabharwal" X-ReviewRequest-Repository: hive-git --===============6197472521700465069== 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/27292/#review58872 ----------------------------------------------------------- shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java just so i understand this: we will reload the config every time this method is called (from new session), right ? should we move the setReloadListner() call before allocsLoader.init() because reloadAllocations() is also called inside init(). In which case, we don't need to explicitly call allocsLoader.reloadAllocations(), right ? Also, do we really need to protect the config with AtomicReference ? shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java nit: "Failed to load queue allocations file" - Mohit Sabharwal On Oct. 28, 2014, 5:48 p.m., Prasad Mujumdar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/27292/ > ----------------------------------------------------------- > > (Updated Oct. 28, 2014, 5:48 p.m.) > > > Review request for hive, Brock Noland and Mohit Sabharwal. > > > Bugs: HIVE-8634 > https://issues.apache.org/jira/browse/HIVE-8634 > > > Repository: hive-git > > > Description > ------- > > The fair scheduler queue refresh in HiveServer2 (for non-impersonation mode), doesn't handle the primary/secondary queue mappings correctly. It's not reading primary and secondary rules from the scheduler rule file. > The patch involves refreshing the queue policy allocation to read the fair-scheduler.xml file correctly. > > > Diffs > ----- > > data/conf/fair-scheduler-test.xml PRE-CREATION > itests/hive-unit-hadoop2/src/test/java/org/apache/hive/jdbc/TestSchedulerQueue.java 79878ba > shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java 6125714 > > Diff: https://reviews.apache.org/r/27292/diff/ > > > Testing > ------- > > Added test cases to for various queue allocation rules. > > > Thanks, > > Prasad Mujumdar > > --===============6197472521700465069==--