You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "HonestManXin (via GitHub)" <gi...@apache.org> on 2023/07/20 07:07:40 UTC

[GitHub] [doris] HonestManXin commented on a diff in pull request #21881: [fix](spark load) Hive table properties do not take effect when creating spark session

HonestManXin commented on code in PR #21881:
URL: https://github.com/apache/doris/pull/21881#discussion_r1269024072


##########
fe/spark-dpp/src/main/java/org/apache/doris/load/loadv2/etl/SparkEtlJob.java:
##########
@@ -86,14 +94,19 @@ private void initSparkConfigs(Map<String, String> configs) {
             return;
         }
         for (Map.Entry<String, String> entry : configs.entrySet()) {
-            spark.sparkContext().conf().set(entry.getKey(), entry.getValue());
+            conf.set(entry.getKey(), entry.getValue());
+            conf.set("spark.hadoop." + entry.getKey(), entry.getValue());

Review Comment:
   yes, hive related config need to be prefixed with this, and spark will trim the prefix and set it into hadoop configuration, then hive metastore client  initialized with hadoop configuration.
   ![image](https://github.com/apache/doris/assets/1614501/e34bd5c5-82ae-4542-9dde-0a81d0464fe3)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org