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

Add datanucleus.identifierFactory property to HiveConf to avoid unintentional MetaStore Schema corruption

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • Metastore
    • None
    • Reviewed

    Description

      Hive 0.6.0 we upgraded the version of DataNucleus from 1.0 to 2.0, which changed some of the defaults for how field names get mapped to datastore identifiers. This was problem was resolved in HIVE-1435 by setting datanucleus.identifierFactory=datanucleus in hive-default.xml

      However, this property definition was not added to HiveConf. This can result in schema corruption if the user upgrades from Hive 0.5.0 to 0.6.0 or 0.7.0 and retains the Hive 0.5.0 version hive-default.xml on their classpath.

      Attachments

        1. HIVE-2059.1.patch.txt
          3 kB
          Carl Steinbach

        Issue Links

          Activity

            People

              cwsteinbach Carl Steinbach
              cwsteinbach Carl Steinbach
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: