From user-return-1190-apmail-hadoop-user-archive=hadoop.apache.org@hadoop.apache.org Thu Sep 6 17:51:39 2012 Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 103B09048 for ; Thu, 6 Sep 2012 17:51:39 +0000 (UTC) Received: (qmail 66439 invoked by uid 500); 6 Sep 2012 17:51:33 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 66348 invoked by uid 500); 6 Sep 2012 17:51:33 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 66334 invoked by uid 99); 6 Sep 2012 17:51:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2012 17:51:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2012 17:51:27 +0000 Received: by pbbrq13 with SMTP id rq13so3200957pbb.35 for ; Thu, 06 Sep 2012 10:51:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer:x-gm-message-state; bh=jcDX76Yn6BWuNX0ptQVak1UjY/H71Y0L9A41soxwb+c=; b=L6foMFShgoC8U65uFzyA9Ielu+rVyEYsSd+5zd9jHpvd/0sLbLcFBWU6xqIbuCSvQx GKcHprutSNVh1pBUr5eAJ8OQgKGiZXNmb35+FqQMq93msy8vTw055kV0O65yFeCLumtN c0Bx/HuD2JN4DUy5VFq+lMbJZmW4mI8hdf2xc3F39pAIItYdcOhAbEwtTgLC9nyCo5s8 0J5gc4vS6jHseCh9DlD+MIj+L5NEPffW7IcHgAHSecp2WeufkGoBERdV4VXVoOFiDo+/ 78h/DFzi47hHfLSf33SuGHdCVwWTpyGZrgf9OxzD/chH1g0mp+MSY1UqXgi0jdfjiAdK vW1w== Received: by 10.68.225.233 with SMTP id rn9mr5475218pbc.135.1346953867134; Thu, 06 Sep 2012 10:51:07 -0700 (PDT) Received: from [10.10.11.35] (host1.hortonworks.com. [70.35.59.2]) by mx.google.com with ESMTPS id hx9sm1677731pbc.68.2012.09.06.10.51.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Sep 2012 10:51:06 -0700 (PDT) From: Vinod Kumar Vavilapalli Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/alternative; boundary="Apple-Mail=_07150A96-64ED-4916-89D9-4F707794A320" Subject: Re: build failure - trying to build hadoop trunk checkout Date: Thu, 6 Sep 2012 10:51:03 -0700 In-Reply-To: To: user@hadoop.apache.org References: <556325346CA26341B6F0530E07F90D96016C64CD95E1@GBGH-EXCH-CMS.sig.ads> Message-Id: <21B01BD2-C5F7-4488-9C5F-EB72BDC19A8D@hortonworks.com> X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQl9JOwOgWVhPbq48Og9qy1VD3q+LAxYq0tMjBe4mZvqJC4aAZhIO3/YESit8KBua4gvLqs9 X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_07150A96-64ED-4916-89D9-4F707794A320 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Never mind filing. I recalled that we debugged this issue long time back = and cornered this down to problems with kerberos. See = https://issues.apache.org/jira/browse/HADOOP-7988. Given that, Tony, changing your hostname seems to be the only option. Thanks, +Vinod On Sep 6, 2012, at 4:24 AM, Steve Loughran wrote: > file this as a JIRA against hadoop-common, though your machine's = hostname looks suspiciously close to breaking the RFC-952 rules on = hostnames >=20 > -steve >=20 > On 5 September 2012 14:49, Tony Burton = wrote: > Hi, >=20 > I'm following the steps at = http://wiki.apache.org/hadoop/HowToContribute for building hadoop in = preparation for submitting a patch. >=20 > I've checked out the trunk, and when I run "mvn test" from the = top-level directory, I get the following error (snipped for clarity): >=20 > Results : >=20 > Failed tests: = testLocalHostNameForNullOrWild(org.apache.hadoop.security.TestSecurityUtil= ): expected: but = was: >=20 > The test in question is: >=20 > @Test > public void testLocalHostNameForNullOrWild() throws Exception { > String local =3D SecurityUtil.getLocalHostName(); > assertEquals("hdfs/" + local + "@REALM", > SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", = (String)null)); > assertEquals("hdfs/" + local + "@REALM", > SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", = "0.0.0.0")); > } >=20 > And my hostname is tonyb-Precision-WorkStation-390. >=20 > Any idea how I can get this test to pass? >=20 > Thanks, >=20 > Tony >=20 >=20 >=20 >=20 >=20 >=20 > ********************************************************************** > This email and any attachments are confidential, protected by = copyright and may be legally privileged. If you are not the intended = recipient, then the dissemination or copying of this email is = prohibited. If you have received this in error, please notify the sender = by replying by email and then delete the email completely from your = system. Neither Sporting Index nor the sender accepts responsibility = for any virus, or any other defect which might affect any computer or IT = system into which the email is received and/or opened. It is the = responsibility of the recipient to scan the email and no responsibility = is accepted for any loss or damage arising in any way from receipt or = use of this email. Sporting Index Ltd is a company registered in = England and Wales with company number 2636842, whose registered office = is at Gateway House, Milverton Street, London, SE11 4AP. Sporting Index = Ltd is authorised and regulated by the UK Financial Services Authority = (reg. no. 150404) and Gambling Commission (reg. no. = 000-027343-R-308898-001). Any financial promotion contained herein has = been issued > and approved by Sporting Index Ltd. >=20 > Outbound email has been scanned for viruses and SPAM >=20 --Apple-Mail=_07150A96-64ED-4916-89D9-4F707794A320 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Never = mind filing. I recalled that we debugged this issue long time back and = cornered this down to problems with kerberos. See https://issues.= apache.org/jira/browse/HADOOP-7988.

Given that, = Tony, changing your hostname seems to be the only = option.

Thanks,
+Vinod

On Sep 6, 2012, at 4:24 AM, Steve Loughran wrote:

file this = as a JIRA against hadoop-common, though your machine's hostname looks = suspiciously close to breaking the RFC-952 rules on = hostnames

-steve

On = 5 September 2012 14:49, Tony Burton <TBurton@sportingindex.com> wrote:
 Hi,

I'm following the steps at http://wiki.apache.org/hadoop/HowToContribute for = building hadoop in preparation for submitting a patch.

I've checked out the trunk, and when I run "mvn test" from the top-level = directory, I get the following error (snipped for clarity):

Results :

Failed tests:   = testLocalHostNameForNullOrWild(org.apache.hadoop.security.TestSecurityUtil= ): expected:<hdfs/tonyb-[Precision-WorkS]tation-390@REALM> but = was:<hdfs/tonyb-[precision-works]tation-390@REALM>

The test in question is:

@Test
  public void testLocalHostNameForNullOrWild() throws Exception = {
    String local =3D SecurityUtil.getLocalHostName();
    assertEquals("hdfs/" + local + "@REALM",
                =  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", = (String)null));
    assertEquals("hdfs/" + local + "@REALM",
                =  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", = "0.0.0.0"));
  }

And my hostname is tonyb-Precision-WorkStation-390.

Any idea how I can get this test to pass?

Thanks,

Tony






= **********************************************************************
= This email and any attachments are confidential, protected by copyright = and may be legally privileged.  If you are not the intended = recipient, then the dissemination or copying of this email is = prohibited. If you have received this in error, please notify the sender = by replying by email and then delete the email completely from your = system.  Neither Sporting Index nor the sender accepts = responsibility for any virus, or any other defect which might affect any = computer or IT system into which the email is received and/or opened. =  It is the responsibility of the recipient to scan the email and no = responsibility is accepted for any loss or damage arising in any way = from receipt or use of this email.  Sporting Index Ltd is a company = registered in England and Wales with company number 2636842, whose = registered office is at Gateway House, Milverton Street, London, SE11 = 4AP.  Sporting Index Ltd is authorised and regulated by the UK = Financial Services Authority (reg. no. 150404) and Gambling Commission = (reg. no. 000-027343-R-308898-001).  Any financial promotion = contained herein has been issued
and approved by Sporting Index Ltd.

Outbound email has been scanned for viruses and SPAM


= --Apple-Mail=_07150A96-64ED-4916-89D9-4F707794A320--