Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4113

Catalog prints misleading error message when it cannot connect to HMS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.7.0
    • None
    • Catalog

    Description

      The catalog server prints the following error message when it cannot create the catalog service:
      "Error initialializing Catalog. Please run 'invalidate metadata'"

      This shows up when the catalog fails to initialize, like getDatabase HMS call fails (probably HMS is not ready yet), in which case none of the impalads can run any query because they haven't gotten their initial metadata update.

      E0909 12:03:33.278311 96437 CatalogServiceCatalog.java:607] NoSuchObjectException(message:cloudera_manager_metastore_canary_test_db_hive_1_hivemetastore_d58189da03eaa0773d6f03557662087b)
      E0909 12:03:33.282852 96437 JniCatalog.java:105] Error initialializing Catalog. Please run 'invalidate metadata'
      Java exception follows:
      com.cloudera.impala.catalog.CatalogException: Error initializing Catalog. Catalog may be empty.
      	at com.cloudera.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:608)
      	at com.cloudera.impala.service.JniCatalog.<init>(JniCatalog.java:103)
      Caused by: NoSuchObjectException(message:cloudera_manager_metastore_canary_test_db_hive_1_hivemetastore_d58189da03eaa0773d6f03557662087b)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_database_result$get_database_resultStandardScheme.read(ThriftHiveMetastore.java:15543)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_database_result$get_database_resultStandardScheme.read(ThriftHiveMetastore.java:15520)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_database_result.read(ThriftHiveMetastore.java:15451)
      	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_database(ThriftHiveMetastore.java:662)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_database(ThriftHiveMetastore.java:649)
      	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getDatabase(HiveMetaStoreClient.java:1178)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:101)
      	at com.sun.proxy.$Proxy4.getDatabase(Unknown Source)
      	at com.cloudera.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:573)
      	... 1 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sailesh Sailesh Mukil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: