apache/spark — pull request #3663 by guowei2 (2014-12-10 10:56:26+00:00)
Title: [SPARK-4815][SQL] Fix: ThriftServer use only one SessionState to run sql using hive

Use a `SessionState` map in `HiveContext` to store all of the session states to the thread id.
The session state will be updated when open a new hive session and close the session