Skip to content

Commit c1f7d16

Browse files
hkothariCurtis Howard
authored andcommitted
Fixing curl command to use -O (apache#7)
(cherry picked from commit 767acb7) (cherry picked from commit 3ef5953) (cherry picked from commit 1a15ff8) (cherry picked from commit ece3bb8)
1 parent e57ceeb commit c1f7d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/CoarseCookSchedulerBackend.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import scala.collection.mutable
4343
object CoarseCookSchedulerBackend {
4444
def fetchUri(uri: String): String =
4545
Option(URI.create(uri).getScheme).map(_.toLowerCase) match {
46-
case Some("http") => s"curl $uri"
46+
case Some("http") => s"curl -O $uri"
4747
case Some("spark-rsync") =>
4848
val regex = "^spark-rsync://".r
4949
val cleanURI = regex.replaceFirstIn(uri, "")

0 commit comments

Comments
 (0)