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

Junfan Zhang updated OOZIE-3404:
--------------------------------
    Description: 
When we run spark in a cluster, we rely on the spark jars on hdfs. We don't 
deploy Spark on the cluster server. So running pySpark according to the Oozie 
documentation is not successful.
 
I found that when Hadoop is a 2.0+ version, although Oozie sets the 
{{SPARK_HOME}}  variable in {{mapred.child.env}} , the {{mapreduce.map.env}} 
variable is read first in Hadoop ([source 
code|https://github.com/apache/hadoop/blob/f95b390df2ca7d599f0ad82cf6e8d980469e7abb/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapred/MapReduceChildJVM.java#L45])
 . So when we don't set {{SPARK_HOME}} env in {{mapreduce.map.env}} , pySpark 
doesn't work.

  was:
When we run spark in a cluster, we rely on the spark jars on hdfs. We don't 
deploy Spark on the cluster server. So running pySpark according to the Oozie 
documentation is not successful.

Currently I have added the {{SPARK_HOME}} class environment variable to 
{{sparkMain}} class and it has been able to run successfully.


> The env variable of SPARK_HOME needs to be set when running pySpark
> -------------------------------------------------------------------
>
>                 Key: OOZIE-3404
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3404
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Junfan Zhang
>            Assignee: Junfan Zhang
>            Priority: Major
>
> When we run spark in a cluster, we rely on the spark jars on hdfs. We don't 
> deploy Spark on the cluster server. So running pySpark according to the Oozie 
> documentation is not successful.
>  
> I found that when Hadoop is a 2.0+ version, although Oozie sets the 
> {{SPARK_HOME}}  variable in {{mapred.child.env}} , the {{mapreduce.map.env}} 
> variable is read first in Hadoop ([source 
> code|https://github.com/apache/hadoop/blob/f95b390df2ca7d599f0ad82cf6e8d980469e7abb/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapred/MapReduceChildJVM.java#L45])
>  . So when we don't set {{SPARK_HOME}} env in {{mapreduce.map.env}} , pySpark 
> doesn't work.



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

Reply via email to