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

    https://github.com/apache/spark/pull/5876#discussion_r29895833
  
    --- 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()
    --- End diff --
    
    Instead of this I'd use "$temp/something" as the metastore directory, to 
avoid the "temp" directory being created by another process before Hive has a 
chance to do it.


---
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