Description
This will be a major cleanup task. Unfortunately part of the state will leak to SessionState, which shouldn't know anything about Hive. Part of the effort here is to create a new SparkSession interface (SPARK-13643) and do reflection there to decide which SessionState to use.