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 6452617FF6 for ; Thu, 12 Feb 2015 08:21:34 +0000 (UTC) Received: (qmail 15394 invoked by uid 500); 12 Feb 2015 08:21:29 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 15313 invoked by uid 500); 12 Feb 2015 08:21:29 -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 15300 invoked by uid 99); 12 Feb 2015 08:21:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 08:21:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Kiran.Kumar.MR@huawei.com designates 119.145.14.64 as permitted sender) Received: from [119.145.14.64] (HELO szxga01-in.huawei.com) (119.145.14.64) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 08:21:02 +0000 Received: from 172.24.2.119 (EHLO szxeml433-hub.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CJK98876; Thu, 12 Feb 2015 16:17:50 +0800 (CST) Received: from SZXEML501-MBX.china.huawei.com ([169.254.1.136]) by szxeml433-hub.china.huawei.com ([10.82.67.210]) with mapi id 14.03.0158.001; Thu, 12 Feb 2015 16:17:47 +0800 From: "Kiran Kumar.M.R" To: "user@hadoop.apache.org" Subject: RE: Building for Windows Thread-Topic: Building for Windows Thread-Index: AQHQRkahjqdiJRGWH0mp4U2U0gc/bJzr/nWAgACJFsD//5AngIAAkIww Date: Thu, 12 Feb 2015 08:17:47 +0000 Message-ID: <75E9B3D687D9BA43A99B7097A074C5B529812FB1@szxeml501-mbx.china.huawei.com> References: <2319236.rJdMuH1bzu@precision> <24E8D947D2CC144DA340FBD0F71DD67206ABC004@MAILBOX-HYD.capiqcorp.com> <75E9B3D687D9BA43A99B7097A074C5B5298111DD@szxeml501-mbx.china.huawei.com> <2391650.yzsA8VjH6q@precision> In-Reply-To: <2391650.yzsA8VjH6q@precision> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.164.188] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org Hi Lucio, You need to install any of following on your build machine. These are one t= ime install and do not need internet connection. You can download ISO of VS= and install. These tools are necessary to build native C++ code in hadoop-common and had= oop-hdfs 1.Windows 7.1 SDK (Along with Microsoft Visual C++ 10) OR 2. Windows 8.1 SDK with Visual Studio 2013 Express (If this is installed, f= ollow instructions in http://zutai.blogspot.com/2014/06/build-install-and-r= un-hadoop-24-240-on.html?showComment=3D1422091525887#c2264594416650430988 t= o upgrade Build files0 The above installation can be in any drive. Just ensure that you use the command prompt given by SDK/Visual Studio. The= se command prompts will have paths set to msbuild.exe, cl.exe etc. If you do not want to use these command prompt, then run the relevant batch= files to set all ENV variable. These batch files can be found in the VS in= stallation directory. Eg: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\= vcvarsx86_amd64.bat" This batch files will set all relevant PATH Maven needs internet connection to download the dependent POM and JARs. If your build server is not having internet access, then you need to comple= te a successful build on some other machine and copy maven repo directory t= o build server. While building you can instruct maven to work offline and use the build di= rectory you have copied. Eg: you can add this option "-Drepo.dir=3DD:\maven_repo -o" to mvn command= s on build server Regards, Kiran ___________________________________________________________________________= _______________________________ This e-mail and its attachments contain confidential information from HUAWE= I, which is intended only for the person or entity whose address is listed = above. Any use of the information contained herein in any way (including, b= ut not limited to, total or partial disclosure, reproduction, or disseminat= ion) by persons other than the intended recipient(s) is prohibited. If you = receive this e-mail in error, please notify the sender by phone or email im= mediately and delete it! ___________________________________________________________________________= _______________________________ > -----Original Message----- > From: Lucio Crusca [mailto:lucio@sulweb.org] > Sent: Thursday, February 12, 2015 12:56 > To: user@hadoop.apache.org > Subject: Re: Building for Windows >=20 > Though I've gone go one step further, the build now stops with the > following > error: >=20 > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven- > plugin:1.2:exec > (compile-ms-winutils) on project hadoop-common: Command execution > failed. > Cannot run program "msbuild"... >=20 > I'm running the build from the Windows SDK command prompt, but > msbuild.exe isn't on the PATH and it is actually missing in the whole > C:. >=20 > I do have a msbuild.exe file on the Windows installation CD-ROM in >=20 > D: > \sources\sxs\amd64_msbuild_b03f5f7f11d50a3a_3.5.9600.16384_none_ecc760d > 4ddf5d348 >=20 > but I prefer avoid using it directly, because I need a repeatable build > procedure. This is a test drive, but I'll have to build hadoop on a > production server that has no internet access, so I'd like to > understand what should I do in order to have msbuild.exe in C:. >=20