Build and Install Hadoop 2.x or newer on Windows
Introduction
Hadoop version 2.2 onwards includes native support for Windows. The official Apache Hadoop releases do not include Windows binaries (yet, as of January 2014). However building a Windows package from the sources is fairly straightforward.
Hadoop is a complex system with many components. Some familiarity at a high level is helpful before attempting to build or install it or the first time. Familiarity with Java is necessary in case you need to troubleshoot.
Choose Java Version and set JAVA_HOME
Oracle JDK versions 1.7 and 1.6 have been tested by the Hadoop developers and are known to work.
Make sure that JAVA_HOME is set in your environment and does not contain any spaces. If your default Java installation directory has spaces then you must use the Windows 8.3 Pathname instead e.g. c:\Progra~1\Java\... instead of c:\Program Files\Java\....
Getting Hadoop sources
The current stable release as of August 2014 is 2.5. The source distribution can be retrieved from the ASF download server or using subversion or git.
- From the ASF Hadoop download page or a mirror.
- Subversion URL: _https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.5_
- Git repository URL: git://git.apache.org/hadoop-common.git. After downloading the sources via git, switch to the stable 2.5 using git checkout branch-2.5, or use the appropriate branch name if you are targeting a newer version.
Installing Dependencies and Setting up Environment for Building下载依赖以及设置编译环境
The BUILDING.txt file in the root of the source tree has detailed information on the list of requirements and how to install them. It also includes information on setting up the environment and a few quirks that are specific to Windows. It is strongly recommended that you read and understand it before proceeding.
参考:https://cwiki.apache.org/confluence/display/HADOOP2/Hadoop2OnWindows
参考:https://www.cnblogs.com/yjyyjy/p/12731968.html
参考:https://www.jianshu.com/p/aa8cfaa26790
参考:https://www.cnblogs.com/it-deepinmind/p/14296815.html

浙公网安备 33010602011771号