hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Crawford (JIRA)" <>
Subject [jira] [Commented] (HIVE-2585) Collapse hive.metastore.uris and hive.metastore.local
Date Tue, 09 Oct 2012 17:40:02 GMT


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.


+    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");
+    }
> Collapse hive.metastore.uris and hive.metastore.local
> -----------------------------------------------------
>                 Key: HIVE-2585
>                 URL:
>             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,
> 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:

View raw message