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

xuqing updated SPARK-10483:
---------------------------
    Description: 
Create a symbol link for spark-submit
{quote}
[root@xqwin03 bin]# ll spark-submit
lrwxrwxrwx 1 root root 47 Sep  8 02:49 spark-submit -> 
/opt/spark-1.3.1-bin-hadoop2.4/bin/spark-submit
{quote}

run spark-submit meets following errors:
{color:red}
/usr/bin/spark-submit: line 50: /usr/bin/spark-class: No such file or directory
{color}

The reason is 
SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
can not handle symbol link

change to 
{color:red}
SPARK_HOME="$(cd "`dirname $(readlink -nf "$0")`"/.. ; pwd -P)"
{color}
can fix this problem

  was:
Create a symbol link for spark-submit
run spark-submit meets following errors:
{color:red}
/usr/bin/spark-submit: line 50: /usr/bin/spark-class: No such file or directory
{color}

The reason is 
SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
can not handle symbol link

change to 
{color:red}
SPARK_HOME="$(cd "`dirname $(readlink -nf "$0")`"/.. ; pwd -P)"
{color}
can fix this problem


> spark-submit can not support symbol link
> ----------------------------------------
>
>                 Key: SPARK-10483
>                 URL: https://issues.apache.org/jira/browse/SPARK-10483
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Submit
>    Affects Versions: 1.3.1, 1.4.1
>         Environment: [root@xqwin03 bin]# cat /etc/redhat-release 
> Red Hat Enterprise Linux Server release 6.4 (Santiago)
> [root@xqwin03 bin]# uname -a
> Linux xqwin03 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 
> x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: xuqing
>
> Create a symbol link for spark-submit
> {quote}
> [root@xqwin03 bin]# ll spark-submit
> lrwxrwxrwx 1 root root 47 Sep  8 02:49 spark-submit -> 
> /opt/spark-1.3.1-bin-hadoop2.4/bin/spark-submit
> {quote}
> run spark-submit meets following errors:
> {color:red}
> /usr/bin/spark-submit: line 50: /usr/bin/spark-class: No such file or 
> directory
> {color}
> The reason is 
> SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
> can not handle symbol link
> change to 
> {color:red}
> SPARK_HOME="$(cd "`dirname $(readlink -nf "$0")`"/.. ; pwd -P)"
> {color}
> can fix this problem



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

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

Reply via email to