回复:Re:run spark apps in linux crontab

2016-07-20 Thread luohui20001
thank you focus, and all.this problem solved by adding a line ". /etc/profile" in my shell. Thanks&Best regards! San.Luo - 原始邮件 - 发件人:"focus" 收件人:"luohui20001" , "user@spark.apache.org" 主题:Re:run spark

Re:run spark apps in linux crontab

2016-07-20 Thread focus
Hi, I just meet this problem, too! The reason is crontab runtime doesn't have the variables you defined, such as $SPARK_HOME. I defined the $SPARK_HOME and other variables in /etc/profile like this: export $MYSCRIPTS=/opt/myscripts export $SPARK_HOME=/opt/spark then, in my crontab job script d