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

Add option to disable HiveContext in spark-shell/pyspark

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.6.1
    • None
    • PySpark, Spark Shell

    Description

      In spark2.0, we can disable hivecontext by setting spark.sql.catalogImplementation, but in spark 1.6 it seems there's no option to turn off hivecontext. This bring several issues I can see.

      • If user spark multiple spark-shell on the same machine but don't specify hive-site.xml will cause embedded derby conflict.
      • For any spark downstream project, if they want to reuse the code in spark-shell, then they have to reply on whether hive profile is turned on to decide whether HiveContext is created. This doesn't make sense to me.

      Although spark 2.0 don't have such issue, considering most of people are still use spark 1.x, this feature would benefit users I think. I can create PR if this feature is reasonable for users.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zjffdu Jeff Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: