[ 
https://issues.apache.org/jira/browse/SPARK-4257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201658#comment-14201658
 ] 

jiezhou edited comment on SPARK-4257 at 11/7/14 5:56 AM:
---------------------------------------------------------

In start-master.sh, the SPARK_MASTER_IP's default value is empty string, so it 
is set `hostname`.
And only if SPARK_MASTER_IP is explicitly set to "IP" in advance in the 
configuration file like   conf/spark-env.sh,  the spark shell can connect to 
standalone master by spark://IP:7077.


was (Author: jiezhou):
In start-master.sh, the SPARK_MASTER_IP's default value is empty string, so it 
is set `hostname`.
And only if SPARK_MASTER_IP is explicitly set in advance in configuration file 
like   conf/spark-env.sh,  the spark shell can connect to standalone master by 
spark://IP:7077.

> Spark master can only be accessed by hostname
> ---------------------------------------------
>
>                 Key: SPARK-4257
>                 URL: https://issues.apache.org/jira/browse/SPARK-4257
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.2.0
>            Reporter: Davies Liu
>            Priority: Critical
>
> After sbin/start-all.sh, the spark shell can not connect to standalone master 
> by spark://IP:7077, it works if replace IP by hostname.
> In the docs[1], it says use `spark://IP:PORT` to connect to master.
> [1] http://spark.apache.org/docs/latest/spark-standalone.html



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to