Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0CAF5200B48 for ; Mon, 18 Jul 2016 18:46:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0B54D160A65; Mon, 18 Jul 2016 16:46:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 56060160A5D for ; Mon, 18 Jul 2016 18:46:42 +0200 (CEST) Received: (qmail 11713 invoked by uid 500); 18 Jul 2016 16:46:41 -0000 Mailing-List: contact commits-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@spark.apache.org Received: (qmail 11704 invoked by uid 99); 18 Jul 2016 16:46:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2016 16:46:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6EE08DFAF5; Mon, 18 Jul 2016 16:46:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shivaram@apache.org To: commits@spark.apache.org Message-Id: <35d141857e484d728aba112b9de7d293@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: spark git commit: [SPARK-16055][SPARKR] warning added while using sparkPackages with spark-submit Date: Mon, 18 Jul 2016 16:46:41 +0000 (UTC) archived-at: Mon, 18 Jul 2016 16:46:43 -0000 Repository: spark Updated Branches: refs/heads/master a529fc944 -> 8ea3f4eae [SPARK-16055][SPARKR] warning added while using sparkPackages with spark-submit ## What changes were proposed in this pull request? https://issues.apache.org/jira/browse/SPARK-16055 sparkPackages - argument is passed and we detect that we are in the R script mode, we should print some warning like --packages flag should be used with with spark-submit ## How was this patch tested? In my system locally Author: krishnakalyan3 Closes #14179 from krishnakalyan3/spark-pkg. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8ea3f4ea Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8ea3f4ea Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8ea3f4ea Branch: refs/heads/master Commit: 8ea3f4eaec65ee4277f9943063fcc9488d3fa924 Parents: a529fc9 Author: krishnakalyan3 Authored: Mon Jul 18 09:46:23 2016 -0700 Committer: Shivaram Venkataraman Committed: Mon Jul 18 09:46:23 2016 -0700 ---------------------------------------------------------------------- R/pkg/R/sparkR.R | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/8ea3f4ea/R/pkg/R/sparkR.R ---------------------------------------------------------------------- diff --git a/R/pkg/R/sparkR.R b/R/pkg/R/sparkR.R index 62659b0..ff5297f 100644 --- a/R/pkg/R/sparkR.R +++ b/R/pkg/R/sparkR.R @@ -155,6 +155,10 @@ sparkR.sparkContext <- function( existingPort <- Sys.getenv("EXISTING_SPARKR_BACKEND_PORT", "") if (existingPort != "") { + if (length(packages) != 0) { + warning(paste("sparkPackages has no effect when using spark-submit or sparkR shell", + " please use the --packages commandline instead", sep = ",")) + } backendPort <- existingPort } else { path <- tempfile(pattern = "backend_port") --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org For additional commands, e-mail: commits-help@spark.apache.org