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 7314620049E for ; Thu, 10 Aug 2017 09:32:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 717EA16AC91; Thu, 10 Aug 2017 07:32:11 +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 DD33816AC8E for ; Thu, 10 Aug 2017 09:32:10 +0200 (CEST) Received: (qmail 18063 invoked by uid 500); 10 Aug 2017 07:32:10 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 18052 invoked by uid 99); 10 Aug 2017 07:32:09 -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; Thu, 10 Aug 2017 07:32:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ABBCBE9456; Thu, 10 Aug 2017 07:32:09 +0000 (UTC) From: caneGuy To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request #18901: [SPARK-21689][YARN] Download user jar from remote... Content-Type: text/plain Message-Id: <20170810073209.ABBCBE9456@git1-us-west.apache.org> Date: Thu, 10 Aug 2017 07:32:09 +0000 (UTC) archived-at: Thu, 10 Aug 2017 07:32:11 -0000 Github user caneGuy commented on a diff in the pull request: https://github.com/apache/spark/pull/18901#discussion_r132381900 --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala --- @@ -516,6 +516,10 @@ object SparkSubmit extends CommandLineUtils { if (deployMode == CLIENT || isYarnCluster) { childMainClass = args.mainClass if (isUserJar(args.primaryResource)) { + val hadoopConf = new HadoopConfiguration() + args.primaryResource = + Option(args.primaryResource).map( + downloadFile(_, targetDir, args.sparkProperties, hadoopConf)).orNull childClasspath += args.primaryResource } if (args.jars != null) { childClasspath ++= args.jars.split(",") } --- End diff -- I agree with you, and updated the logic. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org