Chris McConnell created HIVE-3656:
-------------------------------------

             Summary: Fix ERROR logging related to hive.metastore.uris and 
javax.jdo.option.ConnectionURL being set
                 Key: HIVE-3656
                 URL: https://issues.apache.org/jira/browse/HIVE-3656
             Project: Hive
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 0.9.0
            Reporter: Chris McConnell
            Priority: Minor


In order to ensure the defaults are set, HiveConf sets 
javax.jdo.option.ConnectionURL to the default, embedded Derby DB. 

When utilizing the hive.metastore.uris (for example, using a 
thrift://host:port) to connect to an external metastore, the code block below 
is executed:

{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}

Quick way to test is with HiveServer2:

hive --config /path/to/hive-site.xml --service hiveserver2 

with hive-site.xml utilizing the hive.metastore.uris

--
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

Reply via email to