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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 2.0.0
    • Component/s: Configuration, Metastore
    • Labels:
      None
    • Hadoop Flags:
      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.2.patch
          7 kB
          Ashutosh Chauhan
        2. HIVE-1841.patch
          2 kB
          Ashutosh Chauhan
        3. HIVE-1841.1.patch.txt
          0.6 kB
          Carl Steinbach

          Issue Links

            Activity

              People

              • Assignee:
                ashutoshc Ashutosh Chauhan
                Reporter:
                appodictic Edward Capriolo
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: