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

schematool errors out when HIVE_OPTS is set

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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • Metastore
    • None

    Description

      If HIVE_OPTS is set schematool command fails to start. To repro this set HIVE_AUX_JARS_PATH

      $ export HIVE_AUX_JARS_PATH=/path/lib.jar
      

      Above export adds a --hiveconf option to the commandline args to HiveSchemaTool which doesn't recognize it.

      $ hive-install-dir/bin/schematool -dbType derby -info
      HiveSchemaTool:Parsing failed.  Reason: Unrecognized option: -hiveconf
      usage: schemaTool
       -dbType <databaseType>             Metastore database type
       -dryRun                            list SQL scripts (no execute)
       -help                              print this message
       -info                              Show config and schema details
       -initSchema                        Schema initialization
       -initSchemaTo <initTo>             Schema initialization to a version
       -passWord <password>               Override config file password
       -upgradeSchema                     Schema upgrade
       -upgradeSchemaFrom <upgradeFrom>   Schema upgrade from a version
       -userName <user>                   Override config file user name
       -verbose                           only print SQL statements
      

      Attachments

        1. HIVE-6110.1.patch.txt
          0.5 kB
          Venki Korukanti

        Issue Links

        Activity

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

          People

            vkorukanti Venki Korukanti Assign to me
            vkorukanti Venki Korukanti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment