Skip to content

Commit

Permalink
Fixing curl command to use -O (apache#7)
Browse files Browse the repository at this point in the history
(cherry picked from commit 767acb7)
(cherry picked from commit 3ef5953)
(cherry picked from commit 1a15ff8)
  • Loading branch information
hkothari authored and Curtis Howard committed Feb 20, 2018
1 parent 4256586 commit ece3bb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import scala.collection.mutable
object CoarseCookSchedulerBackend {
def fetchUri(uri: String): String =
Option(URI.create(uri).getScheme).map(_.toLowerCase) match {
case Some("http") => s"curl $uri"
case Some("http") => s"curl -O $uri"
case Some("spark-rsync") =>
val regex = "^spark-rsync://".r
val cleanURI = regex.replaceFirstIn(uri, "")
Expand Down

0 comments on commit ece3bb8

Please sign in to comment.