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

CLONE - pig -useHCatalog with embedded metastore fails to pass command line args to metastore (org.apache.hive.hcatalog version)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • HCatalog
    • None
    • Hide
      (None, this is reinstating a fix that was already in place with HIVE-6633 and was lost)
      Show
      (None, this is reinstating a fix that was already in place with HIVE-6633 and was lost)

    Description

      This fails because the embedded metastore can't connect to the database because the command line -D arguments passed to pig are not getting passed to the metastore when the embedded metastore is created. Using hive.metastore.uris set to the empty string causes creation of an embedded metastore.

      pig -useHCatalog "-Dhive.metastore.uris=" "-Djavax.jdo.option.ConnectionPassword=AzureSQLDBXYZ"

      The goal is to allow a pig job submitted via WebHCat to specify a metastore to use via job arguments. That is not working because it is not possible to pass Djavax.jdo.option.ConnectionPassword and other necessary arguments to the embedded metastore.

      Attachments

        1. hive-7901.01.patch
          4 kB
          Eric N. Hanson

        Issue Links

          Activity

            People

              ehans Eric N. Hanson
              sushanth Sushanth Sowmyan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: