File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
core/src/main/scala/org/apache/spark/deploy Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -796,6 +796,9 @@ private[spark] object SparkSubmitUtils {
796
796
if (coordinates == null || coordinates.trim.isEmpty) {
797
797
" "
798
798
} else {
799
+ val sysOut = System .out
800
+ // To prevent ivy from logging to system out
801
+ System .setOut(printStream)
799
802
val artifacts = extractMavenCoordinates(coordinates)
800
803
// Default configuration name for ivy
801
804
val ivyConfName = " default"
@@ -854,6 +857,7 @@ private[spark] object SparkSubmitUtils {
854
857
packagesDirectory.getAbsolutePath + File .separator + " [artifact](-[classifier]).[ext]" ,
855
858
retrieveOptions.setConfs(Array (ivyConfName)))
856
859
860
+ System .setOut(sysOut)
857
861
resolveDependencyPaths(rr.getArtifacts.toArray, packagesDirectory)
858
862
}
859
863
}
You can’t perform that action at this time.
0 commit comments