You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Soundararajan Velu (JIRA)" <ji...@apache.org> on 2010/08/18 17:09:17 UTC

[jira] Created: (HIVE-1554) Hive Unable to start due to metastore exception

Hive Unable to start due to metastore exception
-----------------------------------------------

                 Key: HIVE-1554
                 URL: https://issues.apache.org/jira/browse/HIVE-1554
             Project: Hadoop Hive
          Issue Type: Bug
          Components: CLI, Metastore, Server Infrastructure
    Affects Versions: 0.5.0
         Environment: Suse Linux v 11, Hadoop v .20.1. , Derby10.5.3
            Reporter: Soundararajan Velu


Hive is running after restared some time it is not starting because of metastore excepiton . The exception is like this

2010-08-17 09:17:03,916 ERROR metastore.HiveMetaStore (HiveMetaStore.java:<init>(107)) - Unable to initialize the metastore :Exception thrown performing schema operation : Add classes to Catalog "", Schema "APP"

We are using Derby10.5.3 in server mode  we have connected to derby through this URL                                             jdbc:derby://{IP}:{PORT}/metastore_db;create=true. 

If i remove   metastore_db   from the derby/bin location it is starting and creating new metastore_db in derby/bin.  I suspect metastore_db is corrupted but i am able to open the same metastore_db through the squirrel client.

Here my doubt is metastore_db corrupted or some other problem. If it is corrupted how to recover the db.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HIVE-1554) Hive Unable to start due to metastore exception

Posted by "Soundararajan Velu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Soundararajan Velu resolved HIVE-1554.
--------------------------------------

    Resolution: Invalid

wrong Jira :)

> Hive Unable to start due to metastore exception
> -----------------------------------------------
>
>                 Key: HIVE-1554
>                 URL: https://issues.apache.org/jira/browse/HIVE-1554
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: CLI, Metastore, Server Infrastructure
>    Affects Versions: 0.5.0
>         Environment: Suse Linux v 11, Hadoop v .20.1. , Derby10.5.3
>            Reporter: Soundararajan Velu
>
> When I try to restart Hive, sometimes it fails with weird exception around metastore.
> Following is the error message that it spits out.
> 2010-08-17 09:17:03,916 ERROR metastore.HiveMetaStore (HiveMetaStore.java:<init>(107)) - Unable to initialize the metastore :Exception thrown performing schema operation : Add classes to Catalog "", Schema "APP"
> We are using Derby10.5.3 in server mode  we have connected to derby through this URL                                             jdbc:derby://{IP}:{PORT}/metastore_db;create=true. 
> If I remove the  metastore_db  from derby/bin, it starts and creates a new metastore_db in derby/bin.  I suspect metastore_db gets corrupted for some reason, but I am able to open the same metastore_db through other clients like squirrel, DBexplorer etc...
> Here my doubt is metastore_db corrupted or some other problem. If it is corrupted how to recover the db.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1554) Hive Unable to start due to metastore exception

Posted by "Soundararajan Velu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Soundararajan Velu updated HIVE-1554:
-------------------------------------

    Description: 
When I try to restart Hive, sometimes it fails with weird exception around metastore.

Following is the error message that it spits out.

2010-08-17 09:17:03,916 ERROR metastore.HiveMetaStore (HiveMetaStore.java:<init>(107)) - Unable to initialize the metastore :Exception thrown performing schema operation : Add classes to Catalog "", Schema "APP"

We are using Derby10.5.3 in server mode  we have connected to derby through this URL                                             jdbc:derby://{IP}:{PORT}/metastore_db;create=true. 

If I remove the  metastore_db  from derby/bin, it starts and creates a new metastore_db in derby/bin.  I suspect metastore_db gets corrupted for some reason, but I am able to open the same metastore_db through other clients like squirrel, DBexplorer etc...

Here my doubt is metastore_db corrupted or some other problem. If it is corrupted how to recover the db.

  was:
Hive is running after restared some time it is not starting because of metastore excepiton . The exception is like this

2010-08-17 09:17:03,916 ERROR metastore.HiveMetaStore (HiveMetaStore.java:<init>(107)) - Unable to initialize the metastore :Exception thrown performing schema operation : Add classes to Catalog "", Schema "APP"

We are using Derby10.5.3 in server mode  we have connected to derby through this URL                                             jdbc:derby://{IP}:{PORT}/metastore_db;create=true. 

If i remove   metastore_db   from the derby/bin location it is starting and creating new metastore_db in derby/bin.  I suspect metastore_db is corrupted but i am able to open the same metastore_db through the squirrel client.

Here my doubt is metastore_db corrupted or some other problem. If it is corrupted how to recover the db.


> Hive Unable to start due to metastore exception
> -----------------------------------------------
>
>                 Key: HIVE-1554
>                 URL: https://issues.apache.org/jira/browse/HIVE-1554
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: CLI, Metastore, Server Infrastructure
>    Affects Versions: 0.5.0
>         Environment: Suse Linux v 11, Hadoop v .20.1. , Derby10.5.3
>            Reporter: Soundararajan Velu
>
> When I try to restart Hive, sometimes it fails with weird exception around metastore.
> Following is the error message that it spits out.
> 2010-08-17 09:17:03,916 ERROR metastore.HiveMetaStore (HiveMetaStore.java:<init>(107)) - Unable to initialize the metastore :Exception thrown performing schema operation : Add classes to Catalog "", Schema "APP"
> We are using Derby10.5.3 in server mode  we have connected to derby through this URL                                             jdbc:derby://{IP}:{PORT}/metastore_db;create=true. 
> If I remove the  metastore_db  from derby/bin, it starts and creates a new metastore_db in derby/bin.  I suspect metastore_db gets corrupted for some reason, but I am able to open the same metastore_db through other clients like squirrel, DBexplorer etc...
> Here my doubt is metastore_db corrupted or some other problem. If it is corrupted how to recover the db.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.