Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22597

Include More Context in Database NoSuchObjectException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0, 4.0.0-alpha-1
    • None
    • None

    Description

      org.apache.hadoop.hive.metastore.api.NoSuchObjectException: default
      	at org.apache.hadoop.hive.metastore.ObjectStore.getDatabase(ObjectStore.java:717) ~[hive-standalone-metastore-server-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
      	at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
      	at org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:97) ~[hive-standalone-metastore-server-4.0.0-SN
      

      One can decipher that this exception is in regards to a database by looking at the stack trace, but it should be specified in the error message itself. Also, there is no catalogue information provided, so it could be a bit ambiguous.

      Attachments

        1. HIVE-22597.2.patch
          2 kB
          David Mollitor
        2. HIVE-22597.1.patch
          1.0 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: