spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Vanzin (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-22640) Can not switch python exec in executor side
Date Tue, 11 Dec 2018 23:19:01 GMT

     [ https://issues.apache.org/jira/browse/SPARK-22640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcelo Vanzin reassigned SPARK-22640:
--------------------------------------

    Assignee:     (was: Marcelo Vanzin)

> Can not switch python exec in executor side
> -------------------------------------------
>
>                 Key: SPARK-22640
>                 URL: https://issues.apache.org/jira/browse/SPARK-22640
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.2.0
>            Reporter: Kent Yao
>            Priority: Major
>
> {code:java}
> PYSPARK_PYTHON=~/anaconda3/envs/py3/bin/python \
> bin/spark-submit --master yarn --deploy-mode client \ 
> --archives ~/anaconda3/envs/py3.zip \
> --conf spark.yarn.appMasterEnv.PYSPARK_PYTHON=py3.zip/py3/bin/python \
> --conf spark.executorEnv.PYSPARK_PYTHON=py3.zip/py3/bin/python  \
> /home/hadoop/data/apache-spark/spark-2.1.2-bin-hadoop2.7/examples/src/main/python/mllib/correlations_example.py
> {code}
> In the case above, I created a python environment, delivered it via `--arichives`, then
visited it on Executor Node via `spark.executorEnv.PYSPARK_PYTHON`.
> But Executor seemed to use `PYSPARK_PYTHON=~/anaconda3/envs/py3/bin/python` instead of
`spark.executorEnv.PYSPARK_PYTHON=py3.zip/py3/bin/python`
> {code:java}
> java.io.IOException: Cannot run program "/home/hadoop/anaconda3/envs/py3/bin/python":
error=2, No such file or directory
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
> 	at org.apache.spark.api.python.PythonWorkerFactory.startDaemon(PythonWorkerFactory.scala:163)
> 	at org.apache.spark.api.python.PythonWorkerFactory.createThroughDaemon(PythonWorkerFactory.scala:89)
> 	at org.apache.spark.api.python.PythonWorkerFactory.create(PythonWorkerFactory.scala:65)
> 	at org.apache.spark.SparkEnv.createPythonWorker(SparkEnv.scala:117)
> 	at org.apache.spark.api.python.PythonRunner.compute(PythonRDD.scala:128)
> 	at org.apache.spark.api.python.PythonRDD.compute(PythonRDD.scala:63)
> 	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
> 	at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
> 	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
> 	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
> 	at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
> 	at org.apache.spark.rdd.ZippedPartitionsRDD2.compute(ZippedPartitionsRDD.scala:89)
> 	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
> 	at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
> 	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
> 	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
> 	at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
> 	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
> 	at org.apache.spark.scheduler.Task.run(Task.scala:108)
> 	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:335)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.io.IOException: error=2, No such file or directory
> 	at java.lang.UNIXProcess.forkAndExec(Native Method)
> 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
> 	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
> 	... 23 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message