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 A4C3E18BE5 for ; Tue, 2 Jun 2015 17:29:50 +0000 (UTC) Received: (qmail 55591 invoked by uid 500); 2 Jun 2015 17:29:50 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 55491 invoked by uid 500); 2 Jun 2015 17:29:50 -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 55342 invoked by uid 99); 2 Jun 2015 17:29:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 17:29:50 +0000 Date: Tue, 2 Jun 2015 17:29:50 +0000 (UTC) From: "Sushanth Sowmyan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10892) TestHCatClient should not accept external metastore param from -Dhive.metastore.uris 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-10892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569467#comment-14569467 ] Sushanth Sowmyan commented on HIVE-10892: ----------------------------------------- [~thejas], can I bug you for a quick review? > TestHCatClient should not accept external metastore param from -Dhive.metastore.uris > ------------------------------------------------------------------------------------ > > Key: HIVE-10892 > URL: https://issues.apache.org/jira/browse/HIVE-10892 > Project: Hive > Issue Type: Bug > Components: Tests > Affects Versions: 1.2.0 > Reporter: Sushanth Sowmyan > Assignee: Sushanth Sowmyan > Attachments: HIVE-10892.patch > > > HIVE-10074 added the ability to specify a -Dhive.metastore.uris from the commandline, so as to run the test against a deployed metastore. > However, because of the way HiveConf is written, this results in that parameter always overriding any value specified in the conf passed into it for instantiation, since it accepts System Var Overrides. This results in some tests, notably those that attempt to connect between two metastores (such as TestHCatClient#testPartitionRegistrationWithCustomSchema to fail. > Fixing this in HiveConf is not a good idea, since that behaviour is desired for HiveConf. Fixing this in HCatUtil.getHiveConf doesn't really work either, since that is a utility wrapper on HiveConf, and is supposed to behave similarly. Thus, the fix for this then becomes something to use in all our testcases, where we instantiate Configuration objects. It seems more appropriate to change the parameter we use to specify test parameters then, than to change each config object. > Thus, we should change semantics for running this test against an external metastore by specifying the override in a different parameter name, say test.hive.metastore.uris, instead of hive.metastore.uris, which has a specific meaning. -- This message was sent by Atlassian JIRA (v6.3.4#6332)