You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alister Lee (JIRA)" <ji...@apache.org> on 2015/01/07 09:07:34 UTC

[jira] [Commented] (SPARK-4257) Spark master can only be accessed by hostname

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

Alister Lee commented on SPARK-4257:
------------------------------------

Further, the spark URL is set correctly when SPARK_MASTER_IP is set, but not if the -h option is used from sbin/start-master.sh.

eg. 
$ sbin/start-master.sh -h `hostname --ip-address`
starting org.apache.spark.deploy.master.Master, logging to /tmp/log/spark-ec2-user-org.apache.spark.deploy.master.Master-1-ip-172-31-12-155.out
$ grep spark:// /tmp/log/spark*.out
15/01/07 08:04:12 INFO Master: Starting Spark master at spark://ip-172-31-12-155:7077
$ sbin/stop-master.sh
stopping org.apache.spark.deploy.master.Master
$ export SPARK_MASTER_IP=`hostname --ip-address`
$ sbin/start-master.sh
starting org.apache.spark.deploy.master.Master, logging to /tmp/log/spark-ec2-user-org.apache.spark.deploy.master.Master-1-ip-172-31-12-155.out
$ grep spark:// /tmp/log/spark*.out
15/01/07 08:05:39 INFO Master: Starting Spark master at spark://172.31.12.155: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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org