Return-Path: X-Original-To: apmail-spark-commits-archive@minotaur.apache.org Delivered-To: apmail-spark-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 889BE10504 for ; Sat, 19 Oct 2013 18:30:01 +0000 (UTC) Received: (qmail 8781 invoked by uid 500); 19 Oct 2013 18:29:59 -0000 Delivered-To: apmail-spark-commits-archive@spark.apache.org Received: (qmail 8752 invoked by uid 500); 19 Oct 2013 18:29:57 -0000 Mailing-List: contact commits-help@spark.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@spark.incubator.apache.org Delivered-To: mailing list commits@spark.incubator.apache.org Received: (qmail 8176 invoked by uid 99); 19 Oct 2013 18:29:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Oct 2013 18:29:29 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 19 Oct 2013 18:29:26 +0000 Received: (qmail 7452 invoked by uid 99); 19 Oct 2013 18:29:04 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Oct 2013 18:29:04 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 16EF044659; Sat, 19 Oct 2013 18:29:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rxin@apache.org To: commits@spark.incubator.apache.org Date: Sat, 19 Oct 2013 18:29:03 -0000 Message-Id: <365bd69675d84452b16832a77ba895b3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: Add deprecation warning to unrecognized MASTER urls X-Virus-Checked: Checked by ClamAV on apache.org 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 Authored: Sat Oct 19 00:26:43 2013 -0700 Committer: Aaron Davidson 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)