我的github

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.

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

 

posted on 2022-02-08 11:36  XiaoNiuFeiTian  阅读(36)  评论(0)    收藏  举报