[
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}
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value></value>
</property>
{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