Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5876#discussion_r29895762
  
    --- Diff: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
 ---
    @@ -74,7 +74,16 @@ private[hive] object SparkSQLCLIDriver {
           System.exit(1)
         }
     
    -    val sessionState = new CliSessionState(new 
HiveConf(classOf[SessionState]))
    +    val localMetastore = {
    +      val temp = Utils.createTempDir()
    +      temp.delete()
    +      temp
    +    }
    +    val cliConf = new HiveConf(classOf[SessionState])
    +    // Override the location of the metastore since this is only used for 
local execution.
    --- End diff --
    
    So, if I understand this correctly, you're creating just a "dummy" local 
metastore that won't actually be used; this is just to keep the Hive libraries 
happy, right?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to