You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel Jouany (JIRA)" <ji...@apache.org> on 2016/03/01 12:52:18 UTC

[jira] [Comment Edited] (SPARK-10795) FileNotFoundException while deploying pyspark job on cluster

    [ https://issues.apache.org/jira/browse/SPARK-10795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173489#comment-15173489 ] 

Daniel Jouany edited comment on SPARK-10795 at 3/1/16 11:51 AM:
----------------------------------------------------------------

Hi - I am facing the exact same problem. 

However 
* I do initialize my ??SparkContext?? correctly, as the first statement in my main method.
* I have spark-submitted the job with your exact command line : {{spark-submit --master yarn-cluster --num-executors 1 --driver-memory 1g --executor-memory 1g --executor-cores 1}}

Can it be a configuration problem? The user that launches the spark-submit does have sufficient rights in the given HDFS directory (??/user/$USERNAME/.sparkStaging/??...)

Thanks in advance!

[EDIT!]
My .py file works just fine if launched simply through {{pyspark myfile.py}}.
But as soon as I add {{--master yarn-cluster}} to the command line it fails...


was (Author: djouany):
Hi - I am facing the exact same problem. 

However 
* I do initialize my ??SparkContext?? correctly, as the first statement in my main method.
* I have spark-submitted the job with your exact command line : {{spark-submit --master yarn-cluster --num-executors 1 --driver-memory 1g --executor-memory 1g --executor-cores 1}}

Can it be a configuration problem? The user that launches the spark-submit does have sufficient rights in the given HDFS directory (??/user/$USERNAME/.sparkStaging/??...)

Thanks in advance!

> FileNotFoundException while deploying pyspark job on cluster
> ------------------------------------------------------------
>
>                 Key: SPARK-10795
>                 URL: https://issues.apache.org/jira/browse/SPARK-10795
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>         Environment: EMR 
>            Reporter: Harshit
>
> I am trying to run simple spark job using pyspark, it works as standalone , but while I deploy over cluster it fails.
> Events :
> 2015-09-24 10:38:49,602 INFO  [main] yarn.Client (Logging.scala:logInfo(59)) - Uploading resource file:/usr/lib/spark/python/lib/pyspark.zip -> hdfs://ip-xxxx.ap-southeast-1.compute.internal:8020/user/hadoop/.sparkStaging/application_1439967440341_0461/pyspark.zip
> Above uploading resource file is successfull , I manually checked file is present in above specified path , but after a while I face following error :
> Diagnostics: File does not exist: hdfs://ip-xxx.ap-southeast-1.compute.internal:8020/user/hadoop/.sparkStaging/application_1439967440341_0461/pyspark.zip
> java.io.FileNotFoundException: File does not exist: hdfs://ip-1xxx.ap-southeast-1.compute.internal:8020/user/hadoop/.sparkStaging/application_1439967440341_0461/pyspark.zip



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org