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 BED8FCD54 for ; Mon, 3 Jun 2013 17:59:23 +0000 (UTC) Received: (qmail 96540 invoked by uid 500); 3 Jun 2013 17:59:22 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 96472 invoked by uid 500); 3 Jun 2013 17:59:22 -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 96457 invoked by uid 500); 3 Jun 2013 17:59:21 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 96440 invoked by uid 99); 3 Jun 2013 17:59:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 17:59:21 +0000 Date: Mon, 3 Jun 2013 17:59:21 +0000 (UTC) From: "Shreepadma Venugopalan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4648) Add ability to set hadoop conf overrides in JDBC for HiveServer2 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-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673367#comment-13673367 ] Shreepadma Venugopalan commented on HIVE-4648: ---------------------------------------------- [~harisekhon]: It is possible to set and unset config variables through JDBC that can be set/unset through the command line. To do so, you'd need to do an execute statement with "set config.var = value". To set the scratch dir, you can do the following in JDBC, {noformat} statement.execute("set hive.exec.scratchdir = /tmp/mydir"); {noformat} Note that this property is set for the particular JDBC connection. > Add ability to set hadoop conf overrides in JDBC for HiveServer2 > ---------------------------------------------------------------- > > Key: HIVE-4648 > URL: https://issues.apache.org/jira/browse/HIVE-4648 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC > Affects Versions: 0.10.0 > Reporter: Hari Sekhon > > It's possible in BeeLine to specify set command overides of hadoop config variables, but I haven't seen any example code of how to do this in JDBC with HiveServer2. > We need an ability to specify hadoop conf overrides on a per session basis or even half way through the session. See this Hive ticket for some background: > https://issues.apache.org/jira/browse/HIVE-4644 -- 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