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 6C03F200D1E for ; Wed, 18 Oct 2017 22:44:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6A96E1609DE; Wed, 18 Oct 2017 20:44:49 +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 AE82E160BEA for ; Wed, 18 Oct 2017 22:44:48 +0200 (CEST) Received: (qmail 21314 invoked by uid 500); 18 Oct 2017 20:44:47 -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 20694 invoked by uid 99); 18 Oct 2017 20:44:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2017 20:44:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 56A69180702; Wed, 18 Oct 2017 20:44:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id nM1ELYp0bLWT; Wed, 18 Oct 2017 20:44:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B45925F1D5; Wed, 18 Oct 2017 20:44:43 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 26919E095C; Wed, 18 Oct 2017 20:44:43 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 0B59AC415FE; Wed, 18 Oct 2017 20:44:43 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6238372603981754190==" MIME-Version: 1.0 Subject: Re: Review Request 62706: HIVE-17473 implement workload management pools From: Sergey Shelukhin To: Zhiyuan Yang , j.prasanth.j@gmail.com Cc: Sergey Shelukhin , hive Date: Wed, 18 Oct 2017 20:44:43 -0000 Message-ID: <20171018204443.63763.47940@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Sergey Shelukhin X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/62706/ X-Sender: Sergey Shelukhin References: <20171017224836.5693.92676@reviews-vm2.apache.org> In-Reply-To: <20171017224836.5693.92676@reviews-vm2.apache.org> X-ReviewBoard-Diff-For: ql/src/java/org/apache/hadoop/hive/ql/exec/tez/UserPoolMapping.java Reply-To: Sergey Shelukhin X-ReviewRequest-Repository: hive-git archived-at: Wed, 18 Oct 2017 20:44:49 -0000 --===============6238372603981754190== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Oct. 17, 2017, 10:48 p.m., Prasanth_J wrote: > > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/UserPoolMapping.java > > Lines 70 (patched) > > > > > > nit: throw if defaultPoolName is still null here. Why? I actually wonder how this is going to work w.r.t. Tez. I think default pool name might just mean Tez. > On Oct. 17, 2017, 10:48 p.m., Prasanth_J wrote: > > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/WorkloadManager.java > > Lines 137 (patched) > > > > > > should we do some validation here? To check for max depth of tree. May be we shouldn't allow >2 depth. Should we also add limits to how wide the tree can be. Or max children (cannot be greater than some fraction of executor count). Validation will be performed in a separate jira on apply command, see comments > On Oct. 17, 2017, 10:48 p.m., Prasanth_J wrote: > > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/WorkloadManager.java > > Line 126 (original), 225 (patched) > > > > > > does this launch all sessions synchronously? should we make sure the created sessions are open and are not in accepted state? This only adds sessions objects. I actually refactored this in the next patch to use a factory instead of passing them in. The sessions are started async, see TezSessionPool > On Oct. 17, 2017, 10:48 p.m., Prasanth_J wrote: > > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/WorkloadManager.java > > Lines 329 (patched) > > > > > > isn't this equivalent to sessionsClaimed.acquier()? blocked until acquire No, we also want to check internalVersion periodically, in case if new plan . Although in the next patch it will be gone anyway. - Sergey ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62706/#review188406 ----------------------------------------------------------- On Sept. 30, 2017, 12:57 a.m., Sergey Shelukhin wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62706/ > ----------------------------------------------------------- > > (Updated Sept. 30, 2017, 12:57 a.m.) > > > Review request for hive, Zhiyuan Yang and Prasanth_J. > > > Repository: hive-git > > > Description > ------- > > see jira > > > Diffs > ----- > > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPool.java 4f2997b95b > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/UserPoolMapping.java PRE-CREATION > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/WorkloadManager.java 3f621271cc > ql/src/test/org/apache/hadoop/hive/ql/exec/tez/TestWorkloadManager.java 7adf895077 > service/src/java/org/apache/hive/service/server/HiveServer2.java 5cb973ca95 > > > Diff: https://reviews.apache.org/r/62706/diff/1/ > > > Testing > ------- > > > Thanks, > > Sergey Shelukhin > > --===============6238372603981754190==--