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

Hive Metatool errors out if 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: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • Clients
    • None

    Description

      If HIVE_OPTS were to be set, then the Hive Metatool fails on parsing the commandline arguments. This can happen, for example, if HIVE_AUX_JARS_PATH were to include the HCatalog jar.

      The result, then, is that it tries to execute the following:

      exec $HADOOP jar ${HIVE_LIB}/hive-cli-*.jar $CLASS $HIVE_OPTS "$@"
      

      which maps to:

      exec /usr/lib/hadoop/bin/hadoop jar /usr/lib/hive/lib/hive-cli-0.11.0.2.0.5.0-30.jar org.apache.hadoop.hive.metastore.tools.HiveMetaTool -hiveconf hive.aux.jars.path=file:///usr/lib/hcatalog/share/hcatalog/hcatalog-core.jar -listFSRoot
      

      Then Metatool chokes on seeing the "-hiveconf" parameter.

      Attachments

        1. HIVE-5085.patch
          0.5 kB
          Sushanth Sowmyan

        Issue Links

        Activity

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

          People

            sushanth Sushanth Sowmyan Assign to me
            sushanth Sushanth Sowmyan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment