Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11783

When deployed against remote Hive metastore, HiveContext.executionHive points to wrong metastore

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.1, 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: SQL
    • Labels:
      None

      Description

      When using remote metastore, execution Hive client somehow is initialized to point to the actual remote metastore instead of the dummy local Derby metastore.

      To reproduce this issue:

      1. Configuring conf/hive-site.xml to point to a remote Hive 1.2.1 metastore.
      2. Set hive.metastore.uris to thrift://localhost:9083.
      3. Start metastore service using $HIVE_HOME/bin/hive --service metastore
      4. Start Thrift server with remote debugging options
      5. Attach the debugger to the Thrift server driver process, we can verify that executionHive points to the remote metastore rather than the local execution Derby metastore.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lian cheng Cheng Lian
                Reporter:
                lian cheng Cheng Lian
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: