dongjoon-hyun commented on code in PR #45237:
URL: https://github.com/apache/spark/pull/45237#discussion_r1501683233


##########
launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java:
##########
@@ -271,6 +271,8 @@ Map<String, String> getEffectiveConfig() throws IOException 
{
       Properties p = loadPropertiesFile();
       p.stringPropertyNames().forEach(key ->
         effectiveConfig.computeIfAbsent(key, p::getProperty));
+      
effectiveConfig.putIfAbsent(SparkLauncher.DRIVER_DEFAULT_EXTRA_CLASS_PATH,
+        SparkLauncher.DRIVER_DEFAULT_EXTRA_CLASS_PATH_VALUE);

Review Comment:
   `getEffectiveConfig` is shared by other classes not only by 
`SparkSubmitCommandBuilder`. That's the decision why I fixed it 
`getEffectiveConfig `.
   ```
   $ git grep getEffectiveConfig
   
launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java:  
Map<String, String> getEffectiveConfig() throws IOException {
   launcher/src/main/java/org/apache/spark/launcher/InProcessLauncher.java:    
if (builder.isClientMode(builder.getEffectiveConfig())) {
   launcher/src/main/java/org/apache/spark/launcher/SparkLauncher.java:    
return builder.getEffectiveConfig().get(CHILD_PROCESS_LOGGER_NAME);
   
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:
    Map<String, String> config = getEffectiveConfig();
   
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:
      getEffectiveConfig().get(SparkLauncher.DRIVER_EXTRA_LIBRARY_PATH));
   ```



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