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

IsolatedClientLoader ignores shared prefixes and barrier prefixes when "spark.sql.hive.metastore.jars" is set to "maven"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.4.1, 1.5.0
    • 1.5.0
    • SQL
    • None
    • Spark 1.5 doc/QA sprint

    Description

      I have a local Hive 0.13.1 metastore backed by MySQL. MySQL JDBC connector is put under $JAVA_HOME/jre/lib/ext. With the following spark-defaults.conf

      spark.sql.hive.metastore.version 0.13.1
      spark.sql.hive.metastore.jars maven
      

      Spark shell fails to create HiveContext because MySQL JDBC driver couldn't be properly loaded.

      This is probably because IsolatedClientLoader ignores shared prefixes and barrier prefixes when spark.sql.hive.metastore.jars is set to maven. See this line.

      Attachments

        Activity

          People

            yhuai Yin Huai
            lian cheng Cheng Lian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: