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

Custom Class added through Spark SQL's add jar command may not be in the class loader used by metadataHive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • SQL
    • None

    Description

      One symptom is that people connecting to Spark SQL through thrift server may see class not found exception when accessing their tables using custom serdes.

      I feel https://github.com/apache/spark/blob/master/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala#L103 is not enough. We probably should set the class loader explicitly to metadataHive like what we do at https://github.com/apache/spark/blob/master/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala#L101.

      Attachments

        Activity

          People

            yhuai Yin Huai
            yhuai Yin Huai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: