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

HiveSchemaTool does not honor metastore-site.xml

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dengzh Zhihua Deng Assign to me
            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

              Slack

                Issue deployment