Return-Path: X-Original-To: apmail-samza-dev-archive@minotaur.apache.org Delivered-To: apmail-samza-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C41710FA5 for ; Tue, 13 Aug 2013 06:28:52 +0000 (UTC) Received: (qmail 12598 invoked by uid 500); 13 Aug 2013 06:28:52 -0000 Delivered-To: apmail-samza-dev-archive@samza.apache.org Received: (qmail 12569 invoked by uid 500); 13 Aug 2013 06:28:52 -0000 Mailing-List: contact dev-help@samza.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@samza.incubator.apache.org Delivered-To: mailing list dev@samza.incubator.apache.org Received: (qmail 12561 invoked by uid 99); 13 Aug 2013 06:28:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 06:28:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sriram.sub@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 06:28:45 +0000 Received: by mail-wg0-f43.google.com with SMTP id z12so6296684wgg.22 for ; Mon, 12 Aug 2013 23:28:25 -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 :content-type; bh=6+816EBe6PWqt4bz/fisq3UGLaybh1+ssYUU+Z+ZXwY=; b=msHJjBhEwzijAM/P2GKfdZ8pl9vzXGpI2Zr5eHQnK1PB3HgefRCw1AAHSMswFYKxkp XrDSXh36HEMVVPacO6LPCKfG0ZCBzC2xy7Vgv1NCJx71Uz8JYiwyXy3bok9MxWyo9Qh0 99aVQiLCUkaDzdh0ud58m6CG2ZhghMRFEI2weL/iUMnbNCsGBxB2F93d+86VmlXXi71m 02ev3AtVyfElPCaPu+tOUx5XCnK00y/9tdqRF41jS1EPz85XEvNI/A1Tyb5azDY1Uc3A +AzDc0nYDlnX3GMFy653ljjYx1J5GdT8RgZxxKO//sF5yJRFSszGr86alIQiDtYo14Hw yJfw== X-Received: by 10.180.149.204 with SMTP id uc12mr773798wib.47.1376375305398; Mon, 12 Aug 2013 23:28:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.217.46.4 with HTTP; Mon, 12 Aug 2013 23:28:05 -0700 (PDT) In-Reply-To: <1B43C7411DB20E47AB0FB62E7262B80162FF21EC@ESV4-MBX01.linkedin.biz> References: <1660853A-5DA5-4051-B4EC-DD6DD9C2ECF9@gmail.com> <1B43C7411DB20E47AB0FB62E7262B80162FF2098@ESV4-MBX01.linkedin.biz> <1B43C7411DB20E47AB0FB62E7262B80162FF21EC@ESV4-MBX01.linkedin.biz> From: sriram Date: Mon, 12 Aug 2013 23:28:05 -0700 Message-ID: Subject: Re: build/test failure To: dev@samza.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c3893a27f0ac04e3ce5904 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3893a27f0ac04e3ce5904 Content-Type: text/plain; charset=ISO-8859-1 That is definitely the behavior that I am seeing. /etc/hosts looks fine. Did you figure out how to fix it for all cases? On Mon, Aug 12, 2013 at 11:17 PM, Chris Riccomini wrote: > Hey Sriram, > > I have noticed that when I run my work laptop at home without VPN on, it > resolves its hostname to a hostname of criccomi-mn. When I try and ping > that address from the laptop, itself, I get a DNS resolution failure. If I > log into VPN, I can then ping the host as expected. > > I discovered this issue while trying to run YARN locally on my laptop. > When trying to click from the YARN RM site to the AM dashboard for a Samza > job, the page would fail with some socket issue. I discovered that it was > linking to criccomi-mn. Changing to localhost or 127.0.0.1 fixed the issue. > > I believe that the Samza AM and the JmxServer are likely using a similar > method to resolve hostnames for the local machine (InetAddress). JmxServer > does: > > val hostname = InetAddress.getLocalHost.getHostName > > SamzaAppMaster uses: > > val nodeHostString = System.getenv(ApplicationConstants.NM_HOST_ENV) > > I'm willing to bet (but haven't confirmed) that the YARN NM is using > InetAddress as well, and handing that hostname to SamzaAppMaster via the > environment variable. I wonder if this is the behavior you're seeing? > > Cheers, > Chris > > P.S. Might be double checking /etc/hosts as well. > ________________________________________ > From: sriram [sriram.sub@gmail.com] > Sent: Monday, August 12, 2013 10:25 PM > To: dev@samza.incubator.apache.org > Subject: Re: build/test failure > > The errors are different though. In my case it is to do with my > environment. This has been happening across projects so it is not specific > to Samza. > > > On Mon, Aug 12, 2013 at 9:50 PM, Tejas Patil wrote: > > > I too faced problem while building it. But when I triggered the build > again > > on the same checkout, there were no failures and the build was > successful. > > It seems that there is some problem while building for the very first > time. > > Anyways, I have filed SAMZA-10 for this. > > > > https://issues.apache.org/jira/browse/SAMZA-10 > > > > > > On Mon, Aug 12, 2013 at 7:28 PM, Chris Riccomini < > criccomini@linkedin.com > > >wrote: > > > > > Hey Sriram, > > > > > > This sounds like a weird issue with your environment. Can you open the > > > JIRA? Would be good to get a full stack trace as well. > > > > > > I know LI has some funky subnet issues. I'm wondering: are you running > > > this over VPN? If so, it would be good to throw in a println, or debug, > > or > > > turn on test logging, so we can see what hostname is resolved to in > > > JmxServer for this test. > > > > > > Anyway, I think a JIRA is in order. This shouldn't fail. > > > > > > Cheers, > > > Chris > > > ________________________________________ > > > From: Sriram [sriram.sub@gmail.com] > > > Sent: Monday, August 12, 2013 7:04 PM > > > To: dev@samza.incubator.apache.org > > > Cc: dev@samza.incubator.apache.org > > > Subject: Re: build/test failure > > > > > > I assumed this was an error during code import to open source. If not, > we > > > can go the JIRA route. > > > > > > On Aug 12, 2013, at 6:38 PM, Jakob Homan wrote: > > > > > > > Can you go ahead and open a JIRA? Patches are good too. :) > > > > -Jakob > > > > > > > > > > > > On Mon, Aug 12, 2013 at 6:29 PM, sriram > wrote: > > > > > > > >> I checked out the code from the open source git repo. When I tried > > > building > > > >> it, I get the error below (failed test) - > > > >> > > > >> org.apache.samza.metrics.TestJmxServer > serverStartsUp FAILED > > > >> java.net.UnknownHostException at TestJmxServer.scala:36 > > > >> Caused by: java.net.UnknownHostException at > > > TestJmxServer.scala:36 > > > >> > > > >> 14 tests completed, 1 failed > > > >> :samza-core_2.9.2:test FAILED > > > >> > > > >> FAILURE: Build failed with an exception. > > > >> > > > > > > --001a11c3893a27f0ac04e3ce5904--