You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "John Sichi (JIRA)" <ji...@apache.org> on 2011/05/02 22:15:03 UTC

[jira] [Commented] (HIVE-2029) MetaStore ConnectionURL updates need to trigger creation of Default DB if it doesn't exist

    [ https://issues.apache.org/jira/browse/HIVE-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027819#comment-13027819 ] 

John Sichi commented on HIVE-2029:
----------------------------------

I've asked Paul to take a look.  Adding test-specific properties is sometimes necessary for getting coverage on hard-to-simulate situations, though I agree we should try to keep them to a minimum.

Regarding creating the DB, it seems like this should somehow be tied to datanucleus.autoCreateSchema.  Hive's 'default' database is a row to be populated in this schema, so from the point of view of the underlying DBMS it is data rather than schema, but from the point of Hive, it's all metadata.


> MetaStore ConnectionURL updates need to trigger creation of Default DB if it doesn't exist
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2029
>                 URL: https://issues.apache.org/jira/browse/HIVE-2029
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.7.0
>            Reporter: Carl Steinbach
>         Attachments: hive_2029.patch
>
>
> HIVE-1219 defined the JDOConnectionURLHook plugin, and integrated this feature into HiveMetaStore. On MetaStore operation failures, this plugin is used to update the metastore ConnectionURL configuration property. Currently this update triggers the reinitialization of the underlying JDO PersistenceManager, but it does not trigger checks to see if the default database exists, nor will it create the default database if it does not exist. It needs to do both.
> This ticket also covers removing the 'hive.metastore.force.reload.conf' property from HiveConf and HiveMetaStore. This property should not have been added in the first place since its sole purpose is to facilitate testing of the JDOConnectionURLHook mechanism by unnaturally forcing reinitialization of the PersistenceManager.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira