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 DA4C7200B32 for ; Wed, 25 May 2016 06:39:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D8CA8160A38; Wed, 25 May 2016 04:39:14 +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 4FEB7160A35 for ; Wed, 25 May 2016 06:39:14 +0200 (CEST) Received: (qmail 36739 invoked by uid 500); 25 May 2016 04:39:13 -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 36728 invoked by uid 99); 25 May 2016 04:39:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 04:39:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EE1282C1F6A for ; Wed, 25 May 2016 04:39:12 +0000 (UTC) Date: Wed, 25 May 2016 04:39:12 +0000 (UTC) From: "zhihai xu (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-13760) Add a HIVE_QUERY_TIMEOUT configuration to kill a query if a query is running for more than the configured timeout value. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 May 2016 04:39:15 -0000 [ https://issues.apache.org/jira/browse/HIVE-13760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299444#comment-15299444 ] zhihai xu commented on HIVE-13760: ---------------------------------- I attached a patch HIVE-13760.000.patch which add a configuration HIVE_QUERY_TIMEOUT_SECONDS and use the smaller one as the real timeout value in SQLOperation. I think it may give user more flexibility, which may help save Hadoop cluster resource. > Add a HIVE_QUERY_TIMEOUT configuration to kill a query if a query is running for more than the configured timeout value. > ------------------------------------------------------------------------------------------------------------------------ > > Key: HIVE-13760 > URL: https://issues.apache.org/jira/browse/HIVE-13760 > Project: Hive > Issue Type: Improvement > Components: Configuration > Affects Versions: 2.0.0 > Reporter: zhihai xu > Assignee: zhihai xu > Attachments: HIVE-13760.000.patch > > > Add a HIVE_QUERY_TIMEOUT configuration to kill a query if a query is running for more than the configured timeout value. The default value will be -1 , which means no timeout. This will be useful for user to manage queries with SLA. -- This message was sent by Atlassian JIRA (v6.3.4#6332)