title: Can't add worker to Apache Spark
body: <p>First I started a master locally by command</p>
  
  <pre><code>./sbin/start-master.sh
  </code></pre>
  
  <p>It works fine. I can access the web UI through browser in <code>SPARK_MASTER_IP:8080</code> from both master and a second machine (the one which I intend to add as a worker).</p>
  
  <p>Then I run the command </p>
  
  <pre><code>./bin/spark-class org.apache.spark.deploy.worker.Worker spark://Williams-MacBook-Air.local:7077
  </code></pre>
  
  <p>( "spark://Williams-MacBook-Air.local:7077" is what I saw in the web UI, and I can use this address to start <a href="http://en.wikipedia.org/wiki/Scala_%28programming_language%29" rel="nofollow">Scala</a>/Python shells too.)</p>
  
  <p>Which did not work. Here is what I saw in the console:</p>
  
  <pre><code>Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
  14/07/08 15:59:18 INFO SecurityManager: Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
  14/07/08 15:59:18 INFO SecurityManager: Changing view acls to: williamzhang
  14/07/08 15:59:18 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(williamzhang)
  14/07/08 15:59:19 INFO Slf4jLogger: Slf4jLogger started
  14/07/08 15:59:19 INFO Remoting: Starting remoting
  14/07/08 15:59:19 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://sparkWorker@172.25.83.121:55179]
  14/07/08 15:59:19 INFO Worker: Starting Spark worker 172.25.83.121:55179 with 8 cores, 7.0 GB RAM
  14/07/08 15:59:19 INFO Worker: Spark home: /Users/williamzhang/spark-1.0.0
  14/07/08 15:59:19 INFO WorkerWebUI: Started WorkerWebUI at http://172.25.83.121:8081
  14/07/08 15:59:19 INFO Worker: Connecting to master spark://Williams-MacBook-Air.local:7077...
  14/07/08 15:59:24 WARN Remoting: Tried to associate with unreachable remote address [akka.tcp://sparkMaster@Williams-MacBook-Air.local:7077]. Address is now gated for 60000 ms, all messages to this address will be delivered to dead letters.
  14/07/08 15:59:24 INFO RemoteActorRefProvider$RemoteDeadLetterActorRef: Message [org.apache.spark.deploy.DeployMessages$RegisterWorker] from Actor[akka://sparkWorker/user/Worker#-1453195170] to Actor[akka://sparkWorker/deadLetters] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
  14/07/08 15:59:39 INFO Worker: Connecting to master spark://Williams-MacBook-Air.local:7077...
  14/07/08 15:59:39 INFO RemoteActorRefProvider$RemoteDeadLetterActorRef: Message [org.apache.spark.deploy.DeployMessages$RegisterWorker] from Actor[akka://sparkWorker/user/Worker#-1453195170] to Actor[akka://sparkWorker/deadLetters] was not delivered. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
  14/07/08 15:59:59 INFO Worker: Connecting to master spark://Williams-MacBook-Air.local:7077...
  14/07/08 15:59:59 INFO RemoteActorRefProvider$RemoteDeadLetterActorRef: Message [org.apache.spark.deploy.DeployMessages$RegisterWorker] from Actor[akka://sparkWorker/user/Worker#-1453195170] to Actor[akka://sparkWorker/deadLetters] was not delivered. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
  14/07/08 16:00:19 ERROR Worker: All masters are unresponsive! Giving up.
  </code></pre>
  
  <p>I also tried:</p>
  
  <ol>
  <li><p>Using the actual IP address rather than what I see in the web UI</p></li>
  <li><p>Restarting the master</p></li>
  <li><p>Using the second machine as master and the first machine as worker</p></li>
  </ol>
  
  <p>Both machines have Oracle Java 8 64-bits installed. The first one runs <a href="http://en.wikipedia.org/wiki/OS_X_Mavericks" rel="nofollow">OS&nbsp;X v10.9</a> (Mavericks) and the second one runs <a href="https://en.wikipedia.org/wiki/OS_X_Yosemite" rel="nofollow">OS&nbsp;X v10.10</a> (Yosemite) preview.</p>