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 7B8CFDC50 for ; Tue, 9 Oct 2012 17:40:03 +0000 (UTC) Received: (qmail 73563 invoked by uid 500); 9 Oct 2012 17:40:03 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 73508 invoked by uid 500); 9 Oct 2012 17:40:03 -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 73496 invoked by uid 500); 9 Oct 2012 17:40:03 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 73491 invoked by uid 99); 9 Oct 2012 17:40:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 17:40:03 +0000 Date: Tue, 9 Oct 2012 17:40:02 +0000 (UTC) From: "Travis Crawford (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1967648954.15649.1349804403025.JavaMail.jiratomcat@arcas> In-Reply-To: <1625621297.37157.1321492312699.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2585) Collapse hive.metastore.uris and hive.metastore.local 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-2585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472578#comment-13472578 ] Travis Crawford commented on HIVE-2585: --------------------------------------- I started seeing this error message in my logs, and when investigating believe there's an issue here. AFAICT, if you set {{hive.metastore.uris}} you will ALWAYS see this error. The reason is {{javax.jdo.option.ConnectionURL}} has a default value and will never be null. I set this property in {{hive-site.xml}} and walked through the configuration loading in a debugger. If the value is not empty it takes effect, and is ignored if empty. Since {{javax.jdo.option.ConnectionURL}} has a default and cannot be unset, this warning will always be printed if someone sets {{hive.metastore.uris}}. Before diving into possible solutions, [~ashutoshc] & [~appodictic] can you confirm this is an issue, or clarify how to correctly configure this? If this is a user error I can post a patch clarifying the error message so others that see this message will know what to do. {code} javax.jdo.option.ConnectionURL {code} {code} + if (null != this.get(ConfVars.METASTOREURIS.varname, null) && + null != this.get(ConfVars.METASTORECONNECTURLKEY.varname, null)) { + l4j.error("Found both " + ConfVars.METASTOREURIS.varname + " and " + + ConfVars.METASTORECONNECTURLKEY + " Recommended to have exactly one of those config key" + + "in configuration"); + } {code} > Collapse hive.metastore.uris and hive.metastore.local > ----------------------------------------------------- > > Key: HIVE-2585 > URL: https://issues.apache.org/jira/browse/HIVE-2585 > Project: Hive > Issue Type: Improvement > Components: Metastore > Reporter: Ashutosh Chauhan > Assignee: Ashutosh Chauhan > Fix For: 0.10.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2585.D2559.1.patch, ASF.LICENSE.NOT.GRANTED--HIVE-2585.D2559.2.patch, hive-2585_3.patch > > > We should just have hive.metastore.uris. If it is empty, we shall assume local mode, if non-empty we shall use that string to connect to remote metastore. Having two different keys for same information is confusing. -- 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