dongjoon-hyun commented on a change in pull request #28200:
[SPARK-31432][DEPLOY] bin/sbin scripts should allow to customize jars dir
URL: https://github.com/apache/spark/pull/28200#discussion_r409219522
##########
File path:
launcher/src/main/java/org/apache/spark/launcher/CommandBuilderUtils.java
##########
@@ -314,18 +319,31 @@ static int javaMajorVersion(String javaVersion) {
* or a distribution directory.
*/
static String findJarsDir(String sparkHome, String scalaVersion, boolean
failIfNotFound) {
+ String envSparkJarsDir = System.getenv(ENV_SPARK_JARS_DIR);
+ if (envSparkJarsDir != null && !envSparkJarsDir.isEmpty()) {
+ File envJarsDir = new File(envSparkJarsDir);
+ return handleJarsDir(envJarsDir, failIfNotFound,
Review comment:
`return`? It looks different what I suggested: `warn and continue the old
lookup behavior`.
```
SPARK_JARS_DIR -> sparkHome/jars -> assembly/target/scala-%s/jars
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]