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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to