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

datanucleus.fixedDatastore should be true in hive-default.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.6.0
    • 2.0.0
    • Configuration, Metastore
    • None
    • Incompatible change

    Description

      Two datanucleus variables:

      <property>
       <name>datanucleus.autoCreateSchema</name>
       <value>false</value>
      </property>
      
      <property>
       <name>datanucleus.fixedDatastore</name>
       <value>true</value>
      </property>
      

      are dangerous. We do want the schema to auto-create itself, but we do not want the schema to auto update itself.

      Someone might accidentally point a trunk at the wrong meta-store and unknowingly update. I believe we should set this to false and possibly trap exceptions stemming from hive wanting to do any update. This way someone has to actively acknowledge the update, by setting this to true and then starting up hive, or leaving it false, removing schema modifies for the user that hive usages, and doing all the time and doing the updates by hand.

      Attachments

        1. HIVE-1841.1.patch.txt
          0.6 kB
          Carl Steinbach
        2. HIVE-1841.2.patch
          7 kB
          Ashutosh Chauhan
        3. HIVE-1841.patch
          2 kB
          Ashutosh Chauhan

        Issue Links

          Activity

            People

              ashutoshc Ashutosh Chauhan
              appodictic Edward Capriolo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: