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

HiveSchemaTool does not honor metastore-site.xml

    XMLWordPrintableJSON

Details

    Description

      When using following scripts for initializing metastore schema,

      export HIVE_CONF_DIR='/path/to/metastore_conf'
      ./bin/schematool -dbType mysql -initSchema

      the schematool command will be failed though we have a valid metastore-site.xml under the config path, it tries to init the default embeded db.

      Metastore connection URL:     jdbc:derby:;databaseName=metastore_db;create=true
      Metastore connection Driver :     org.apache.derby.jdbc.EmbeddedDriver
      Metastore connection User:     APP
      Initializing the schema to: 4.0.0-alpha-2

      Attachments

        Issue Links

          Activity

            People

              dengzh Zhihua Deng
              dengzh Zhihua Deng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h