hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakub Holy (JIRA)" <>
Subject [jira] [Commented] (HIVE-3521) Concurrent metastore calls provoke Datanucleus IllegalStateException: "Table object has not been been initialised"
Date Fri, 24 May 2013 12:28:20 GMT


Jakub Holy commented on HIVE-3521:

Thank you for the tips, Andy. I have seen similar problem in our Hive 0.9.0 logs regularly
in the past few months and had no idea what to do about it. I did not bother configuring DataNucelus
because there is nowhere any information about 1) Hive requiring that and 2) how it should
be configured (nowhere = Google, Programming Hive).

Anyway, from your comment and the sparse documentation I have figured out that setting datanucleus.autoStartMechanism
to SchemaTable in hive-site.xml might help. After I restarted Hive, it has created NUCLEUS_TABLES
in the database so it seems to have some effect. I will see in a few weeks/months if it will
indeed fix the problem, i.e. if DataNucleus will load the list of tables from it on start,
avoiding not knowing them later.

For other readers trying to interpret your comment:

* PMF/EMF are JDO's PersistenceManagerFactory / JPA's EntityManagerFactory, i.e. the classes
used to get hold of something actually usable for persisting / reading stuff
* Regarding the advice of setting datanucleus.PersistenceUnitLoadClassesto true in hive-site.xml,
I don't know enough to be able to apply it. If I read the docs correctly, it requires datanucleus.PersistenceUnitName
to be set to a name of a persistence-unit defined in a persistence.xml file - but I haven't
found any such file in Hive 0.9.0 (the only JDO-related thing I have found aside of the metastore
connection properties is package.jdo in hive-metastore-0.9.0.jar. I would appreciate tips
for how to use this setting with Hive.
* To me, "locking of your PMF/EMF" seems to be out of question since all that code is inside
Hive and I only use Hive via hiveserver
> Concurrent metastore calls provoke Datanucleus IllegalStateException: "Table object has
not been been initialised"
> ------------------------------------------------------------------------------------------------------------------
>                 Key: HIVE-3521
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.9.0
>            Reporter: Carl Steinbach

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