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 83685177FF for ; Mon, 10 Nov 2014 01:55:34 +0000 (UTC) Received: (qmail 94257 invoked by uid 500); 10 Nov 2014 01:55:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 94185 invoked by uid 500); 10 Nov 2014 01:55:34 -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 94174 invoked by uid 500); 10 Nov 2014 01:55:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 94171 invoked by uid 99); 10 Nov 2014 01:55:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 01:55:34 +0000 Date: Mon, 10 Nov 2014 01:55:34 +0000 (UTC) From: "Lefty Leverenz (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4576) templeton.hive.properties does not allow values with commas 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-4576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204233#comment-14204233 ] Lefty Leverenz commented on HIVE-4576: -------------------------------------- Adding a TODOC14 label to boost visibility. (Already had a TODOC13 label.) > templeton.hive.properties does not allow values with commas > ----------------------------------------------------------- > > Key: HIVE-4576 > URL: https://issues.apache.org/jira/browse/HIVE-4576 > Project: Hive > Issue Type: Bug > Components: WebHCat > Affects Versions: 0.5.0 > Reporter: Vitaliy Fuks > Assignee: Eugene Koifman > Labels: TODOC13, TODOC14 > Fix For: 0.14.0, 0.13.1 > > Attachments: HIVE-4576.0.13.patch, HIVE-4576.2.patch, HIVE-4576.patch > > > templeton.hive.properties accepts a comma-separated list of key=value property pairs that will be passed to Hive. > However, this makes it impossible to use any "value" that itself has a comma in it. > For example: > {code:xml} > templeton.hive.properties > hive.metastore.sasl.enabled=false,hive.metastore.uris=thrift://foo1.example.com:9083,foo2.example.com:9083 > {code} > {noformat}templeton: starting [/usr/bin/hive, --service, cli, --hiveconf, hive.metastore.sasl.enabled=false, --hiveconf, hive.metastore.uris=thrift://foo1.example.com:9083, --hiveconf, foo2.example.com:9083 etc..{noformat} > because the value is parsed using standard org.apache.hadoop.conf.Configuration.getStrings() call which simply splits on commas from here: > {code:java}for (String prop : appConf.getStrings(AppConfig.HIVE_PROPS_NAME)){code} > This is problematic for any hive property that itself has multiple values, such as hive.metastore.uris above or hive.aux.jars.path. > There should be some way to "escape" commas or a different delimiter should be used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)