You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "xuqing (JIRA)" <ji...@apache.org> on 2015/09/08 08:59:02 UTC
[jira] [Updated] (SPARK-10483) spark-submit can not support symbol
link
[ 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
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_HOME}/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
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org