Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0B2911D41 for ; Thu, 22 May 2014 22:35:03 +0000 (UTC) Received: (qmail 68197 invoked by uid 500); 22 May 2014 22:35:03 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 68175 invoked by uid 500); 22 May 2014 22:35:03 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@spark.apache.org Delivered-To: mailing list issues@spark.apache.org Received: (qmail 68167 invoked by uid 99); 22 May 2014 22:35:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 22:35:03 +0000 Date: Thu, 22 May 2014 22:35:03 +0000 (UTC) From: "Xiangrui Meng (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SPARK-1900) Fix running PySpark files on YARN MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiangrui Meng updated SPARK-1900: --------------------------------- Issue Type: Bug (was: Sub-task) Parent: (was: SPARK-1905) > Fix running PySpark files on YARN > ---------------------------------- > > Key: SPARK-1900 > URL: https://issues.apache.org/jira/browse/SPARK-1900 > Project: Spark > Issue Type: Bug > Components: PySpark > Affects Versions: 1.0.0 > Reporter: Andrew Or > Assignee: Andrew Or > Priority: Blocker > Fix For: 1.0.0 > > > If I run the following on a YARN cluster > {code} > bin/spark-submit sheep.py --master yarn-client > {code} > it fails because of a mismatch in paths: `spark-submit` thinks that `sheep.py` resides on HDFS, and balks when it can't find the file there. A natural workaround is to add the `file:` prefix to the file: > {code} > bin/spark-submit file:/path/to/sheep.py --master yarn-client > {code} > However, this also fails. This time it is because python does not understand URI schemes. > This PR fixes this by automatically resolving all paths passed as command line argument to `spark-submit` properly. This has the added benefit of keeping file and jar paths consistent across different cluster modes. -- This message was sent by Atlassian JIRA (v6.2#6252)