Github user chenghao-intel commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8355#discussion_r42722019
  
    --- Diff: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala
 ---
    @@ -67,6 +68,46 @@ object HiveThriftServer2 extends Logging {
         }
       }
     
    +  def runScript(sqlContext: HiveContext) {
    +    val hiveConf = sqlContext.hiveconf
    +    val script = hiveConf.get("hive.server2.init.script", null)
    --- End diff --
    
    Actually Spark SQL can load the init scripts, and the default value of 
`hive.server2.global.init.file.location` is $HIVE_CONF_DIR, not $SPARK_CONF_DIR 
or the current classpath. 
    
    So this PR makes the same thing which is already supported, probably what 
we want is changing the default value to $SPARK_CONF_DIR?


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