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

Spark2.x does not support read data from Hive 2.x metastore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0, 2.0.1
    • 2.2.0
    • SQL
    • None

    Description

      Hive2.0 has been released in February 2016, after that Hive2.0.1 and Hive2.1.0 have also been released for a long time, but till now spark only support to read hive metastore data from Hive1.2.1 and older version, since Hive2.x has many bugs fixed and performance improvement it's better and urgent to upgrade to support Hive2.x

      failed to load data from hive2.x metastore:
      Exception in thread "main" java.lang.NoSuchFieldError: HIVE_STATS_JDBC_TIMEOUT
      at org.apache.spark.sql.hive.HiveUtils$.hiveClientConfigurations(HiveUtils.scala:197)
      at org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:262)
      at org.apache.spark.sql.hive.HiveSharedState.metadataHive$lzycompute(HiveSharedState.scala:39)
      at org.apache.spark.sql.hive.HiveSharedState.metadataHive(HiveSharedState.scala:38)
      at org.apache.spark.sql.hive.HiveSharedState.externalCatalog$lzycompute(HiveSharedState.scala:4
      at org.apache.spark.sql.hive.HiveSharedState.externalCatalog(HiveSharedState.scala:45)
      at org.apache.spark.sql.hive.HiveSessionState.catalog$lzycompute(HiveSessionState.scala:50)
      at org.apache.spark.sql.hive.HiveSessionState.catalog(HiveSessionState.scala:48)
      at org.apache.spark.sql.hive.HiveSessionState.catalog(HiveSessionState.scala:31)
      at org.apache.spark.sql.SparkSession.table(SparkSession.scala:568)
      at org.apache.spark.sql.SparkSession.table(SparkSession.scala:564)

      Attachments

        Issue Links

          Activity

            People

              smilegator Xiao Li
              KaiXu KaiXu
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: