Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 5C68217BFF for ; Thu, 12 Feb 2015 05:59:36 +0000 (UTC) Received: (qmail 4497 invoked by uid 500); 12 Feb 2015 05:59:29 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 4383 invoked by uid 500); 12 Feb 2015 05:59:28 -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 4373 invoked by uid 99); 12 Feb 2015 05:59: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 05:59:28 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of npokala@spcapitaliq.com designates 198.45.19.159 as permitted sender) Received: from [198.45.19.159] (HELO nj12corpmr01-5.mcgraw-hill.com) (198.45.19.159) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 05:59:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spcapitaliq.com; i=@spcapitaliq.com; l=2759; q=dns/txt; s=GOI1; t=1423720763; x=1455256763; h=from:to:cc:date:subject:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=uyDstQ2xXWM2NpPTPlnsCBvexDgaZKJye5pH+CpJaqs=; b=oBLjV8uKlQDPMIzMawPum6YpiDfyKGaW62iB6dmAaOmHhP27A7M4IZxH fJkWKIcNBwHN4N0Dekvc9sOZNlxwFjYkgN1OeaOqTjhmyQIzJUNizupQ/ 0AgWvfrEbSTMrcaFzsHFsF3zQrVRrUQHmIjKcIrpp+ZRD5d0UlZJUOtQ/ I=; X-IronPort-AV: E=Sophos;i="5.09,563,1418101200"; d="scan'208";a="273741203" Received: from unknown (HELO hyd-exch1.capiqcorp.com) ([172.22.6.54]) by nj12corpmr01-1.mcgraw-hill.com with ESMTP/TLS/RC4-MD5; 12 Feb 2015 00:57:01 -0500 Received: from MAILBOX-HYD.capiqcorp.com ([172.22.6.50]) by hyd-exch1.capiqcorp.com ([172.22.6.54]) with mapi; Thu, 12 Feb 2015 11:25:55 +0530 From: Naveen Kumar Pokala To: "user@hadoop.apache.org" CC: "lucio@sulweb.org" Date: Thu, 12 Feb 2015 11:25:53 +0530 Subject: RE: Building for Windows Thread-Topic: Building for Windows Thread-Index: AdBGRqSI/yDjZVC3StaEzOv+5WX3xQAQSWEA Message-ID: <24E8D947D2CC144DA340FBD0F71DD67206ABC004@MAILBOX-HYD.capiqcorp.com> References: <2319236.rJdMuH1bzu@precision> In-Reply-To: <2319236.rJdMuH1bzu@precision> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi lucio, Following steps helped me in building Hadoop on windows 7. Hadoop-3.0.0 build instructions for Windows 8.1 ---------------------------------------------- I compiled Hadoop-3.0.0 from Git Trunk. I have not used cygwin. I have Wind= ows 8.1 64bit Pre-requisites: --------------- 1. Download and install latest version of cmake for windows from http://www= .cmake.org/download/ 2. Install Visual Studio Express 2013 3. Get latest version of trunk code from git://git.apache.org/hadoop.git (Try to use shortest path such as d:\hdp-git) 4. Download and install proto.exe (version 2.5.0) for windows 5. Ensure you have JDK-1.7 and Maven 3.0.5 or above installed and set in EN= V variables Build settings changes: ---------------------- 1. Migrate Visual Studio Projects native.vcxproj, libwinutils.vcxproj and w= inutils.vcxproj from VS2010 to VS2013 a) Open $hadoop-common-project\hadoop-common\src\main\winutils\winutils.sln= in VS2013. It will prompt you to upgrade the project to VS2013. Click yes. a) Open $hadoop-common-project\hadoop-common\src\main\native\native.sln in = VS2013. It will prompt you to upgrade the project to VS2013. Click yes.=20 2. Open $hadoop-hdfs-project\hadoop-hdfs\pom.xml. Search for "Visual Studio= 10 Win64", change it to "Visual Studio 12 Win64" Build Process: 1. Open "Developer Command Prompt for VS2013" located at "C:\Program Files = (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts" This will open new command shell. Use this to build hadoop. 2. Run batch file "vcvarsx86_amd64.bat" located at "C:\Program Files (x86)\= Microsoft Visual Studio 12.0\VC\bin\x86_amd64" 3. Change to $HADOOP directory and run maven build $mvn install -DskipTests It definitely Works. -Naveen. -----Original Message----- From: Lucio Crusca [mailto:lucio@sulweb.org]=20 Sent: Thursday, February 12, 2015 3:33 AM To: user@hadoop.apache.org Subject: Building for Windows Hello everybody, I'm absolutely new to hadoop and a customer asked me to build version 2.6 f= or Windows Server 2012 R2. I'm myself a java programmer, among other things= , but I've never used hadoop before. I've downloaded and installed JDK7, Maven, Cygwin (for sh, mv, gzip, ...) a= nd other toys specified in the BUILDING.txt file bundled with hadoop source= s. I also set the PATH and other environment variables (JAVA_HOME, ZLIB_HOM= E, Platform, ...). Running mvn package -Pdist -Dtar it compiles everything till MiniKDC included, but then it fails a test afte= r compiling Auth. Here you can see the full output of the mvn command: http://hastebin.com/aqixebojuv.tex Can you help me understand what I'm doing wrong? Thanks in advance Lucio.