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 2D307EABE for ; Wed, 28 Nov 2012 08:21:04 +0000 (UTC) Received: (qmail 72006 invoked by uid 500); 28 Nov 2012 08:21:02 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 71751 invoked by uid 500); 28 Nov 2012 08:21:02 -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 71496 invoked by uid 500); 28 Nov 2012 08:21:00 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 71137 invoked by uid 99); 28 Nov 2012 08:20:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 08:20:59 +0000 Date: Wed, 28 Nov 2012 08:20:59 +0000 (UTC) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <197658918.31652.1354090859618.JavaMail.jiratomcat@arcas> In-Reply-To: <1383575271.111517.1352857212524.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HIVE-3709) Stop storing default ConfVars in temp file 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-3709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505292#comment-13505292 ] Carl Steinbach commented on HIVE-3709: -------------------------------------- Another option for fixing this problem is to give administrators the ability to specify the location where the temporary file should be written (for setuid processes running on POSIX systems the conventional location is somewhere under /var). For example we could add a configuration property named hive.process.local.temporary.dir and have it default to ${user.home}/.hive/${process_id}. > Stop storing default ConfVars in temp file > ------------------------------------------ > > Key: HIVE-3709 > URL: https://issues.apache.org/jira/browse/HIVE-3709 > Project: Hive > Issue Type: Improvement > Components: Configuration > Affects Versions: 0.10.0 > Reporter: Kevin Wilfong > Assignee: Kevin Wilfong > Attachments: HIVE-3709.1.patch.txt, HIVE-3709.2.patch.txt, HIVE-3709.3.patch.txt > > > To work around issues with Hadoop's Configuration object, specifically it's addResource(InputStream), default configurations are written to a temp file (I think HIVE-2362 introduced this). > This, however, introduces the problem that once that file is deleted from /tmp the client crashes. This is particularly problematic for long running services like the metastore server. > Writing a custom InputStream to deal with the problems in the Configuration object should provide a work around, which does not introduce a time bomb into Hive. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira