Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E19B1812F for ; Thu, 21 Jan 2016 17:46:42 +0000 (UTC) Received: (qmail 6651 invoked by uid 500); 21 Jan 2016 17:46:40 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 6588 invoked by uid 500); 21 Jan 2016 17:46:40 -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 6526 invoked by uid 99); 21 Jan 2016 17:46:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2016 17:46:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E0A4F2C14F2 for ; Thu, 21 Jan 2016 17:46:39 +0000 (UTC) Date: Thu, 21 Jan 2016 17:46:39 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-12777) Add capability to restore session MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-12777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110981#comment-15110981 ] Xuefu Zhang commented on HIVE-12777: ------------------------------------ Could we have description of what the feature is please? I don't understand what we are trying to achieve here. Are we trying to restore a session that's lost? How does it get lost? Where do we restore it from? What are the use cases? How does this benefits Hive users? > Add capability to restore session > --------------------------------- > > Key: HIVE-12777 > URL: https://issues.apache.org/jira/browse/HIVE-12777 > Project: Hive > Issue Type: Improvement > Reporter: Rajat Khandelwal > Assignee: Rajat Khandelwal > Attachments: HIVE-12777.04.patch, HIVE-12777.08.patch, HIVE-12777.09.patch, HIVE-12777.11.patch, HIVE-12777.12.patch, HIVE-12777.13.patch, HIVE-12777.15.patch, HIVE-12777.16.patch, HIVE-12777.17.patch > > > Extensions using Hive session handles should be able to restore the hive session from the handle. > Apache Lens depends on a fork of hive and that fork has such a capability. > Relevant commit: https://github.com/InMobi/hive/commit/931fe9116161a18952c082c14223ad6745fefe00#diff-0acb35f7cab7492f522b0c40ce3ce1be > Functionality added: Restoring a session. A session opened once is lost once the cli service is restarted. There may be some operation going on in that session at the time the service is restarted. It's useful to be able to restore a previously existing session. > Have added code in CLIService for that effect. Have also added a test class. -- This message was sent by Atlassian JIRA (v6.3.4#6332)