spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] git commit: Add deprecation warning to unrecognized MASTER urls
Date Sat, 19 Oct 2013 18:29:03 GMT
Updated Branches:
  refs/heads/branch-0.8 f3de2ceb0 -> 919c5571b


Add deprecation warning to unrecognized MASTER urls

Unrecognized MASTER urls will throw an exception rather than be parsed as Mesos URLs
in 0.9. See https://github.com/apache/incubator-spark/pull/71


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/8e578697
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/8e578697
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/8e578697

Branch: refs/heads/branch-0.8
Commit: 8e5786975c71085b7a852a533466609339b411c3
Parents: f181560
Author: Aaron Davidson <aaron@databricks.com>
Authored: Sat Oct 19 00:26:43 2013 -0700
Committer: Aaron Davidson <aaron@databricks.com>
Committed: Sat Oct 19 00:26:43 2013 -0700

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/SparkContext.scala | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/8e578697/core/src/main/scala/org/apache/spark/SparkContext.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala
index 8602804..92f5d29 100644
--- a/core/src/main/scala/org/apache/spark/SparkContext.scala
+++ b/core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -220,6 +220,8 @@ class SparkContext(
       case _ =>
         if (MESOS_REGEX.findFirstIn(master).isEmpty) {
           logWarning("Master %s does not match expected format, parsing as Mesos URL".format(master))
+          logWarning("Deprecation warning: Mesos URLs not preceded by mesos:// are deprecated
" +
+            "and will no longer be supported in Spark 0.9.")
         }
         MesosNativeLibrary.load()
         val scheduler = new ClusterScheduler(this)


Mime
View raw message