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

Metatool updateLocation warning on views

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 1.3.0, 2.0.0
    • Database/Schema
    • None

    Description

      If views are present in a hive database, issuing a 'hive metatool -updateLocation' command will result in an error like this:

      ...
      Warning: Found records with bad LOCATION in SDS table..
      bad location URI: null
      bad location URI: null
      bad location URI: null
      ....

      Based on the source code for Metatool, it looks like there would then be a "bad location URI: null" message for every view and it also appears this is happening simply because the 'sds' table in the hive schema has a column called location that is NULL only for views.

      Attachments

        1. HIVE-11510.1.patch
          0.8 kB
          Wei Zheng
        2. HIVE-11510.2.patch
          3 kB
          Wei Zheng
        3. HIVE-11510.3.patch
          3 kB
          Wei Zheng

        Activity

          People

            wzheng Wei Zheng
            eczech Eric Czech
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: