Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C59FDBC6 for ; Tue, 5 Mar 2013 20:05:36 +0000 (UTC) Received: (qmail 18667 invoked by uid 500); 5 Mar 2013 20:05:34 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 18609 invoked by uid 500); 5 Mar 2013 20:05:34 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 18600 invoked by uid 99); 5 Mar 2013 20:05:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 20:05:34 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_PASS,UNRESOLVED_TEMPLATE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Ramya.Nimmagadda@microsoft.com designates 207.46.163.204 as permitted sender) Received: from [207.46.163.204] (HELO na01-bl2-obe.outbound.protection.outlook.com) (207.46.163.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 20:05:28 +0000 Received: from BL2FFO11FD012.protection.gbl (10.173.161.201) by BL2FFO11HUB013.protection.gbl (10.173.160.105) with Microsoft SMTP Server (TLS) id 15.0.620.12; Tue, 5 Mar 2013 20:04:47 +0000 Received: from TK5EX14HUBC104.redmond.corp.microsoft.com (131.107.125.37) by BL2FFO11FD012.mail.protection.outlook.com (10.173.161.18) with Microsoft SMTP Server (TLS) id 15.0.620.12 via Frontend Transport; Tue, 5 Mar 2013 20:04:47 +0000 Received: from CO9EHSOBE006.bigfish.com (157.54.51.112) by mail.microsoft.com (157.54.80.25) with Microsoft SMTP Server (TLS) id 14.2.318.3; Tue, 5 Mar 2013 20:04:35 +0000 Received: from mail57-co9-R.bigfish.com (10.236.132.253) by CO9EHSOBE006.bigfish.com (10.236.130.69) with Microsoft SMTP Server id 14.1.225.23; Tue, 5 Mar 2013 20:03:58 +0000 Received: from mail57-co9 (localhost [127.0.0.1]) by mail57-co9-R.bigfish.com (Postfix) with ESMTP id 57228C200DC for ; Tue, 5 Mar 2013 20:03:58 +0000 (UTC) X-Forefront-Antispam-Report-Untrusted: CIP:157.56.240.21;KIP:(null);UIP:(null);(null);H:BL2PRD0310HT004.namprd03.prod.outlook.com;R:internal;EFV:INT X-SpamScore: -8 X-BigFish: PS-8(zzbb2dI98dI9371I1443I542I1432I1a09J4015I14ffIzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz177df4h17326ah8275dh18602eh8275bhz31h2a8h668h839h944hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah9a9j1155h) Received-SPF: softfail (mail57-co9: transitioning domain of microsoft.com does not designate 157.56.240.21 as permitted sender) client-ip=157.56.240.21; envelope-from=Ramya.Nimmagadda@microsoft.com; helo=BL2PRD0310HT004.namprd03.prod.outlook.com ;.outlook X-Forefront-Antispam-Report-Untrusted: SFV:SKI;SFS:;DIR:OUT;SFP:;SCL:-1;SRVR:SN2PR03MB095;H:SN2PR03MB096.namprd03.prod.outlook.com;LANG:en; Received: from mail57-co9 (localhost.localdomain [127.0.0.1]) by mail57-co9 (MessageSwitch) id 1362513836301631_9464; Tue, 5 Mar 2013 20:03:56 +0000 (UTC) Received: from CO9EHSMHS006.bigfish.com (unknown [10.236.132.239]) by mail57-co9.bigfish.com (Postfix) with ESMTP id 47C7BC00080 for ; Tue, 5 Mar 2013 20:03:56 +0000 (UTC) Received: from BL2PRD0310HT004.namprd03.prod.outlook.com (157.56.240.21) by CO9EHSMHS006.bigfish.com (10.236.130.16) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 5 Mar 2013 20:03:55 +0000 Received: from SN2PR03MB095.namprd03.prod.outlook.com (10.255.175.159) by BL2PRD0310HT004.namprd03.prod.outlook.com (10.255.97.39) with Microsoft SMTP Server (TLS) id 14.16.275.5; Tue, 5 Mar 2013 20:03:54 +0000 Received: from SN2PR03MB096.namprd03.prod.outlook.com (10.255.175.160) by SN2PR03MB095.namprd03.prod.outlook.com (10.255.175.159) with Microsoft SMTP Server (TLS) id 15.0.620.20; Tue, 5 Mar 2013 20:03:53 +0000 Received: from SN2PR03MB096.namprd03.prod.outlook.com ([169.254.14.52]) by SN2PR03MB096.namprd03.prod.outlook.com ([169.254.14.122]) with mapi id 15.00.0620.020; Tue, 5 Mar 2013 20:03:53 +0000 From: Ramya Nimmagadda To: "common-dev@hadoop.apache.org" Subject: RE: Building branch-1-win, Starting Datanode on Windows Thread-Topic: Building branch-1-win, Starting Datanode on Windows Thread-Index: AQHOGOh56PzibqWJKUqS/iLkt2/58ZiV3sEAgAAehMCAAFFCgIAAfHaAgAC7wfA= Date: Tue, 5 Mar 2013 20:03:52 +0000 Message-ID: <70f39fb256244427822ff95720144d32@SN2PR03MB096.namprd03.prod.outlook.com> References: <9872e44e80bcd894131be5ac43adf233@mail.gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.156.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OrganizationHeadersPreserved: SN2PR03MB095.namprd03.prod.outlook.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%HADOOP.APACHE.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-CrossPremisesHeadersPromoted: TK5EX14HUBC104.redmond.corp.microsoft.com X-CrossPremisesHeadersFiltered: TK5EX14HUBC104.redmond.corp.microsoft.com X-Forefront-Antispam-Report: CIP:131.107.125.37;CTRY:US;IPV:CAL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(13464002)(53754002)(51874002)(164054002)(66654001)(51704002)(479174001)(377454001)(189002)(199002)(24454001)(50466001)(47776003)(63696002)(74502001)(56776001)(15395725002)(47446002)(50986001)(76482001)(23726001)(79102001)(80022001)(46406002)(20776003)(54356001)(47976001)(46102001)(5343655001)(56816002)(47736001)(5343635001)(33646001)(49866001)(77982001)(15974865001)(4396001)(51856001)(65816001)(74662001)(31966008)(59766001)(6806001)(44976002)(15202345001)(16676001)(53806001)(54316002)(69226001)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:BL2FFO11HUB013;H:TK5EX14HUBC104.redmond.corp.microsoft.com;RD:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-OriginatorOrg: microsoft.onmicrosoft.com X-Forefront-PRVS: 0776C39A48 X-Virus-Checked: Checked by ClamAV on apache.org >> Will the datanode create the directory if it doesn't exist? Yes, it does. Thanks, Ramya -----Original Message----- From: Daniel Jones [mailto:daniel.jones@opencredo.com]=20 Sent: Tuesday, March 05, 2013 12:50 AM To: common-dev Subject: Re: Building branch-1-win, Starting Datanode on Windows Hi all, Thanks very much for your help. @Ramya: I created the directory before starting the datanode (I expect it w= ould fail otherwise). Will the datanode create the directory if it doesn't = exist? @Giridharan: I do indeed have the "Microsoft Visual C++ x64 Runtime - 10.0.= 40219". I worked around the problem by changing the dfs.datanode.data.dir.perm prop= erty to set a value of "775". On 5 March 2013 01:24, Giridharan Kesavan wrote: > Daniel, > > Could you pls check if you have 64 bit vc runtime and dotnet framework=20 > installed? > > 64 bit vc runtime is critical. > > -Giri > > > On Mon, Mar 4, 2013 at 12:40 PM, Ramya Nimmagadda <=20 > Ramya.Nimmagadda@microsoft.com> wrote: > > > Hi Daniel, > > > > This can happen when "data" directory permissions are different from=20 > > default (755). Possible reasons could be: > > > > 1. This directory already exists but created with different permissions= . > > One scenario I can think of : The directory got created as part of=20 > > build workflow, and the permissions are inherited from parent=20 > > (C:\Hadoop) 2. The datanode service tried to create this (if it does=20 > > not exist) and failed while setting permissions using "winutils".=20 > > This case can be verified by looking at the DN log for FSShell=20 > > exceptions > > > > To further investigate the root cause, it would help to find out who=20 > > exactly created this directory. As Bikas mentioned, can you go=20 > > through > the > > logs for any exceptions related to permissions? > > > > > > Thanks, > > Ramya > > > > -----Original Message----- > > From: Bikas Saha [mailto:bikas@hortonworks.com] > > Sent: Monday, March 04, 2013 10:44 AM > > To: common-dev@hadoop.apache.org > > Subject: RE: Building branch-1-win, Starting Datanode on Windows > > > > I don't think you need to manually set permissions on Hadoop directorie= s. > > Did you build the native windows executable in your build? Do you=20 > > see any exceptions mentioning winutils? > > > > Bikas > > > > -----Original Message----- > > From: Daniel Jones [mailto:daniel.jones@opencredo.com] > > Sent: Monday, March 04, 2013 6:56 AM > > To: common-dev@hadoop.apache.org > > Subject: Building branch-1-win, Starting Datanode on Windows > > > > Hi all, > > > > I've cloned the branch-1-win branch of Hadoop, and successfully=20 > > managed > to > > build it on my Windows 8 machine. > > When trying to start a datanode instance, I get the following error: > > > > 13/03/04 14:42:47 WARN datanode.DataNode: Invalid directory in > > dfs.data.dir: Incorrect permission for C:/hadoop/data, expected: > > rwxr-xr-x, while actual: ------rwx > > 13/03/04 14:42:47 ERROR datanode.DataNode: All directories in > dfs.data.dir > > are invalid. > > > > The directory exists, and I've set "Allow all" to Everyone. > > > > Is this an issue that should exist in the Windows branch? Is there a=20 > > way to massage Windows' file permissions into something the datanode=20 > > will accept without further modifications to the code? > > > > Many thanks in advance. > > -- > > Daniel Jones - Consultant > > Open Credo Ltd - Excellence in Enterprise Application Development > > > > Mobile: +44 (0)79 8000 9153 > > Main: +44 (0)20 3393 8242 > > > > daniel.jones@opencredo.com > > http://twitter.com/BinaryTweedNet > > www.opencredo.com > > > > Registered Office: 5-11 Lavington Street, London, SE1 0NZ Registered=20 > > in UK. No 3943999 > > > > If you have received this e-mail in error please accept our=20 > > apologies, destroy it immediately and it would be greatly=20 > > appreciated if you > notified > > the sender. It is your responsibility to protect your system from > viruses > > and any other harmful code or device. We try to eliminate them from=20 > > e-mails and attachments; but we accept no liability for any that remain= . > > We may monitor or access any or all e-mails sent to us. > > > > > > > > > -- Daniel Jones - Consultant Open Credo Ltd - Excellence in Enterprise Application Development Mobile: +44 (0)79 8000 9153 Main: +44 (0)20 3393 8242 daniel.jones@opencredo.com http://twitter.com/BinaryTweedNet www.opencredo.com Registered Office: 5-11 Lavington Street, London, SE1 0NZ Registered in UK.= No 3943999 If you have received this e-mail in error please accept our apologies, dest= roy it immediately and it would be greatly appreciated if you notified the = sender. It is your responsibility to protect your system from viruses and = any other harmful code or device. We try to eliminate them from e-mails an= d attachments; but we accept no liability for any that remain. We may monit= or or access any or all e-mails sent to us.