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 376EF200C2C for ; Fri, 17 Feb 2017 01:43:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 35FD9160B6F; Fri, 17 Feb 2017 00:43:46 +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 7CE08160B61 for ; Fri, 17 Feb 2017 01:43:45 +0100 (CET) Received: (qmail 28762 invoked by uid 500); 17 Feb 2017 00:43:44 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 28753 invoked by uid 99); 17 Feb 2017 00:43:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2017 00:43:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2595BC023B for ; Fri, 17 Feb 2017 00:43:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gGOQy-uA2_AE for ; Fri, 17 Feb 2017 00:43:43 +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 C21CB5F5D3 for ; Fri, 17 Feb 2017 00:43:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E18D1E0223 for ; Fri, 17 Feb 2017 00:43:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9800221D63 for ; Fri, 17 Feb 2017 00:43:41 +0000 (UTC) Date: Fri, 17 Feb 2017 00:43:41 +0000 (UTC) From: "Subramanyam Pattipaka (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-15947) Enhance Templeton service job operations reliability MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Feb 2017 00:43:46 -0000 [ https://issues.apache.org/jira/browse/HIVE-15947?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1587= 0954#comment-15870954 ]=20 Subramanyam Pattipaka commented on HIVE-15947: ---------------------------------------------- [~thejas], please review these changes and let me know if you have any comm= ents. cc: [~ashitg], [~kiran.kolli] > Enhance Templeton service job operations reliability > ---------------------------------------------------- > > Key: HIVE-15947 > URL: https://issues.apache.org/jira/browse/HIVE-15947 > Project: Hive > Issue Type: Bug > Reporter: Subramanyam Pattipaka > Assignee: Subramanyam Pattipaka > Attachments: HIVE-15947.patch > > > Currently Templeton service doesn't restrict number of job operation requ= ests. It simply accepts and tries to run all operations. If more number of = concurrent job submit requests comes then the time to submit job operations= can increase significantly. Templetonused hdfs to store staging file for j= ob. If HDFS storage can't respond to large number of requests and throttles= then the job submission can take very large times in order of minutes. > This behavior may not be suitable for all applications and client applica= tions may be looking for predictable and low response for successful reque= st or send throttle response to client to wait for some time before re-requ= esting job operation. > In this JIRA, I am trying to address following job operations=20 > 1) Submit new Job > 2) Get Job Status > 3) List jobs > These three operations has different complexity due to variance in use of= cluster resources like YARN/HDFS. > The idea is to introduce a new config templeton.job.submit.exec.max-procs= which controls maximum number of concurrent active job submissions within = Templeton and use this config to control better response times. If a new jo= b submission request sees that there are already templeton.job.submit.exec.= max-procs jobs getting submitted concurrently then the request will fail wi= th Http error 503 with reason=20 > =E2=80=9CToo many concurrent job submission requests received. Please = wait for some time before retrying.=E2=80=9D > =20 > The client is expected to catch this response and retry after waiting for= some time. The default value for the config templeton.job.submit.exec.max-= procs is set to =E2=80=980=E2=80=99. This means by default job submission r= equests are always accepted. The behavior needs to be enabled based on requ= irements. > We can have similar behavior for Status and List operations with configs = templeton.job.status.exec.max-procs and templeton.list.job.exec.max-procs r= espectively. -- This message was sent by Atlassian JIRA (v6.3.15#6346)