Skip to content

Commit

Permalink
Update Utils.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Oct 8, 2020
1 parent d6e8caf commit 169e1f8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Expand Up @@ -2972,6 +2972,12 @@ private[spark] object Utils extends Logging {
metadata.toString
}

/**
* Download Ivy URIs dependent jars.
*
* @param uri Ivy uri need to be downloaded.
* @return Comma separated string list of URIs of downloaded jars
*/
def resolveMavenDependencies(uri: URI): String = {
val Seq(repositories, ivyRepoPath, ivySettingsPath) =
Seq(
Expand All @@ -2992,7 +2998,7 @@ private[spark] object Utils extends Logging {
}

/**
* @param queryString
* @param queryString Ivy URI query part string.
* @return Exclude list which contains grape parameters of exclude.
* Example: Input: exclude=org.mortbay.jetty:jetty,org.eclipse.jetty:jetty-http
* Output: [org.mortbay.jetty:jetty, org.eclipse.jetty:jetty-http]
Expand All @@ -3014,10 +3020,10 @@ private[spark] object Utils extends Logging {
}

/**
* @param queryString
* @return Exclude list which contains grape parameters of exclude.
* Example: Input: exclude=org.mortbay.jetty:jetty,org.eclipse.jetty:jetty-http
* Output: [org.mortbay.jetty:jetty, org.eclipse.jetty:jetty-http]
* @param queryString Ivy URI query part string.
* @return Exclude list which contains grape parameters of transitive.
* Example: Input: exclude=org.mortbay.jetty:jetty&transitive=true
* Output: true
*/
private def parseTransitive(queryString: String): Boolean = {
if (queryString == null || queryString.isEmpty) {
Expand Down

0 comments on commit 169e1f8

Please sign in to comment.