You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by gatorsmile <gi...@git.apache.org> on 2017/08/04 18:46:34 UTC

[GitHub] spark pull request #18668: [SPARK-21637][SPARK-21451][SQL]get `spark.hadoop....

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

    https://github.com/apache/spark/pull/18668#discussion_r131460271
  
    --- Diff: sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala ---
    @@ -134,6 +135,16 @@ private[hive] object SparkSQLCLIDriver extends Logging {
           // Hive 1.2 + not supported in CLI
           throw new RuntimeException("Remote operations not supported")
         }
    +    // Respect the configurations set by --hiveconf from the command line
    +    // (based on Hive's CliDriver).
    +    val hiveConfFromCmd = sessionState.getOverriddenConfigurations.entrySet().asScala
    +    val newHiveConf = hiveConfFromCmd.map { kv =>
    +      // If the same property is configured by spark.hadoop.xxx, we ignore it and
    +      // obey settings from spark properties
    +      val k = kv.getKey
    +      val v = sys.props.getOrElseUpdate(SPARK_HADOOP_PROP_PREFIX + k, kv.getValue)
    --- End diff --
    
    Then, that sounds ok to me. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org