From user-return-59942-apmail-spark-user-archive=spark.apache.org@spark.apache.org Fri Jul 22 18:08:20 2016 Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E869419907 for ; Fri, 22 Jul 2016 18:08:20 +0000 (UTC) Received: (qmail 2717 invoked by uid 500); 22 Jul 2016 18:08:14 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 2587 invoked by uid 500); 22 Jul 2016 18:08:14 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 2577 invoked by uid 99); 22 Jul 2016 18:08:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2016 18:08:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4BB2ECA364 for ; Fri, 22 Jul 2016 18:08:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id U7KLcucuKNIN for ; Fri, 22 Jul 2016 18:08:12 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4B3205F3F3 for ; Fri, 22 Jul 2016 18:08:11 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id w18so173684560oiw.3 for ; Fri, 22 Jul 2016 11:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=e1bSFWpxdUyJPNyt1og9nlFsblbeWXA5z2utLSUNi0Q=; b=DtK6Oot327gg98sRIGC3OWwK91cLpW2Oxy1YjQBfqgOMAhrEyP9LKJbsdIWBpREERZ Mitch6S6+lHShlceBUcNCRq8Qw4+J31o2mRGK9kFtuI3AdxuxYF1/nm/pm3X/PPhQja4 ManUYdO8tLLgqKco/3lvnefb7aKFP6txFwp1LSfdqZgR6zxXvbs9s2sGAF7GoAZ8Xex7 /EYGQWP0vNrKVbmD1FNFWxN0ExyXGNGrz8gwIj1NnX3UcXMt6IaP8twMW+ZJ/mfosYTj dOdu6mChWKf+WBkDq9+PYPtAKYh0LC9zHBnfvux2TgTqVU7l8byPEbG6a5k0KNnCnrJQ T5Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=e1bSFWpxdUyJPNyt1og9nlFsblbeWXA5z2utLSUNi0Q=; b=iCMp/YtGUX6HU0RuUy3kkWD2LuU1zHPZS2o4lTqlrdQTYvfEBoZUESS55uBdXVSGz5 ublU5AbYjuJECY/0Xf2dOX4BhLWcdfSvETwJOjVGpS4MHjG1VOHMMM38zTfl3/OvYShv Pa/8CYRlRih6sD3Rr+uzJmI1kXC4iSZW51eRFjIPzlzJvS8CqaUIJg/TmjG+yNNf+728 4fNJyks+wJcmzALAqyrRUebuS8tjuzpDwHb6ylVBuxVS6Qg1Xsho/+Y6HvGjahuoz1Xt BTfkCj8X/TGS9Gzb+3WeaYGQSQqu2ApV/rFOyra66vGmXuNxEps5hwBHaZNHhWUFGVKU J+jQ== X-Gm-Message-State: AEkoouvcJdCu6ysGJf2JUhoTdv1e64uYgab4+VVx/lCjlwbVtLw2IGBkQgr178DrfGWpTMa4wUP4NQ/pspZ4qg== X-Received: by 10.157.16.35 with SMTP id h32mr2707976ote.147.1469210890006; Fri, 22 Jul 2016 11:08:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.79.74 with HTTP; Fri, 22 Jul 2016 11:08:09 -0700 (PDT) In-Reply-To: References: From: Neil Chang Date: Fri, 22 Jul 2016 14:08:09 -0400 Message-ID: Subject: Re: spark worker continuously trying to connect to master and failed in standalone mode To: Igor Berman Cc: Andrew Ehrlich , user Content-Type: multipart/alternative; boundary=001a1142f06432f53b05383d51d0 --001a1142f06432f53b05383d51d0 Content-Type: text/plain; charset=UTF-8 Thank you guys, it is the port issue. On Wed, Jul 20, 2016 at 11:03 AM, Igor Berman wrote: > in addition check what ip the master is binding to(with nestat) > > On 20 July 2016 at 06:12, Andrew Ehrlich wrote: > >> Troubleshooting steps: >> >> $ telnet localhost 7077 (on master, to confirm port is open) >> $ telnet 7077 (on slave, to confirm port is blocked) >> >> If the port is available on the master from the master, but not on the >> master from the slave, check firewall settings on the master: >> https://help.ubuntu.com/lts/serverguide/firewall.html >> >> On Jul 19, 2016, at 6:25 PM, Neil Chang wrote: >> >> Hi, >> I have two virtual pcs on private cloud (ubuntu 14). I installed spark >> 2.0 preview on both machines. I then tried to test it with standalone mode. >> I have no problem start the master. However, when I start the worker >> (slave) on another machine, it makes many attempts to connect to master and >> failed at the end. >> I can ssh from each machine to another without any problem. I can also >> run a master and worker at the same machine without any problem. >> >> What did I miss? Any clue? >> >> here are the messages: >> >> WARN NativeCodeLoader: Unable to load native-hadoop library for your >> platform ... using builtin-java classes where applicable >> .............. >> INFO Worker: Connecting to master ip:7077 ... >> INFO Worker: Retrying connection to master (attempt #1) >> .............. >> INFO Worker: Retrying connection to master (attempt #7) >> java.lang.IllegalArgumentException: requirement failed: TransportClient >> has not yet been set. >> at scala.Predef$.require(Predef.scala:224) >> ....... >> WARN NettyRocEnv: Ignored failure: java.io.IOException: Connecting to >> ip:7077 timed out >> WARN Worker: Failed to connect to master ip.7077 >> >> >> >> Thanks, >> Neil >> >> >> > --001a1142f06432f53b05383d51d0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you guys, it is the port issue.=C2=A0

On Wed, Jul 20, 2016 at 11= :03 AM, Igor Berman <igor.berman@gmail.com> wrote:
in addition check what ip the= master is binding to(with nestat)

On 20 July 2= 016 at 06:12, Andrew Ehrlich <andrew@aehrlich.com> wrote:<= br>
= Troubleshooting steps:

$ telnet localhost 7077 (on= master, to confirm port is open)
$ telnet <master_ip> 7077= (on slave, to confirm port is blocked)

If the por= t is available on the master from the master, but not on the master from th= e slave, check firewall settings on the master:=C2=A0https://help.= ubuntu.com/lts/serverguide/firewall.html

On Jul 19, 2016, at 6:25 PM, Neil Chang <iambbq@gmail.com> wr= ote:

Hi,
=C2=A0 I have two virtual pcs on= private cloud (ubuntu 14). I installed spark 2.0 preview on both machines.= I then tried to test it with standalone mode.
I have no problem start t= he master. However, when I start the worker (slave) on another machine, it = makes many attempts to connect to master and failed at the end.=C2=A0
= =C2=A0 I can ssh from each machine to another without any problem. I can al= so run a master and worker at the same machine without any problem.

= What did I miss? Any clue?

here are the messages:

WARN Native= CodeLoader: Unable to load native-hadoop library for your platform ... usin= g builtin-java classes where applicable
..............
INFO W= orker: Connecting to master ip:7077 ...=C2=A0
INFO Worker: Retryi= ng connection to master (attempt #1)
..............
INFO Worke= r: Retrying connection to master (attempt #7)
java.lang.IllegalAr= gumentException: requirement failed: TransportClient has not yet been set.<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0at scala.Predef$.require(Predef.scala:= 224)
.......
WARN NettyRocEnv: Ignored failure: java.io.IOExce= ption: Connecting to ip:7077 timed out
WARN Worker: Failed to connect to= master ip.7077



Thanks,
Neil



--001a1142f06432f53b05383d51d0--