+ (Bikas Saha, Chuan Liu, Giridharan Kesavan, Ivan Mitic, and Steve Maine + ported by Chris Nauroth via suresh) + + HADOOP-8946. Merge winutils from branch-1-win to branch-trunk-win. + (Chris Nauroth via suresh) + + HADOOP-8945. Hadoop Common creating package-info.java must not depend on sh. +++ -33,6 +33,7 yarn + yarn.cmd 0755 -41,6 +42,7 yarn-config.sh + yarn-config.cmd 0755 -52,6 +54,8 start-yarn.sh stop-yarn.sh + start-yarn.cmd + stop-yarn.cmd 0755 diff -git a/hadoop-common-project/hadoop-common/ b/hadoop-common-project/hadoop-common/ a/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml +++ -26,6 +26,9 *.sh + *-config.cmd + start-*.cmd + stop-*.cmd 0755 -38,6 +41,7 *-config.sh + *-config.cmd 0755 -46,9 +50,13 *.sh + *.cmd hadoop-config.sh + hadoop.cmd + hdfs.cmd + hadoop-config.cmd 0755 diff -git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml a/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml For example: + + * Run tests : mvn -Pnative-win test + +- +Building distributions: + +Create binary distribution with native code and with documentation: + + $ mvn package -Pdist,native-win,docs -DskipTests -Dtar + +Create source distribution: + + $ mvn package -Pnative-win,src -DskipTests + +Create source and binary distributions with native code and documentation: + + $ mvn package -Pdist,native-win,docs,src -DskipTests -Dtar diff -git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml The native +components are required (not optional) on Windows. + +All Maven goals are the same as described above, with the addition of profile +-Pnative-win to trigger building Windows native components. + +set Platform=圆4 (when building on a 64-bit system) +set Platform=Win32 (when building on a 32-bit system) + +Several tests require that the user must have the Create Symbolic Links +privilege. Failure to set this environment variable correctly will +cause msbuild to fail while building the native code in hadoop-common. +Environment variables on Windows are usually case-insensitive, but Maven treats +them as case-sensitive. It must be "Platform", not "PLATFORM" or "platform". + +You must set the Platform environment variable to either 圆4 or Win32 depending +on whether you're running a 64-bit or 32-bit system. If the full path +would contain spaces, then use the Windows short path instead. (Start, All Programs, +Microsoft Windows SDK v7.1, Windows SDK 7.1 Command Prompt.) + +JAVA_HOME must be set, and the path must not contain spaces. + +Run builds from a Windows SDK Command Prompt. The Windows SDK is free to +download here: + + + +- +Building: + +Keep the source code tree in a short path to avoid running into problems related +to Windows maximum path length limitation. It does not support compiling for 64-bit, +which is problematic if running a 64-bit system. +++ -138,3 +138,70 mvn clean site mvn site:stage -DstagingDirectory=/tmp/hadoop-site - + +Building on Windows + +- +Requirements: + +* Windows System +* JDK 1.6 +* Maven 3.0 +* Findbugs 1.3.9 (if running findbugs) +* ProtocolBuffer 2.4.1+ (for MapReduce and HDFS) +* Unix command-line tools from GnuWin32 or Cygwin: sh, mkdir, rm, cp, tar, gzip +* Windows SDK or Visual Studio 2010 Professional +* Internet connection for first build (to fetch all Maven and Hadoop dependencies) + +If using Visual Studio, it must be Visual Studio 2010 Professional (not 2012).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |