-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathYAHOO-BUILDME.txt
34 lines (27 loc) · 1.36 KB
/
YAHOO-BUILDME.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This file describes how to perform a full build of the
Yahoo! Distribution of Hadoop which is based on Apache Hadoop.
Although Hadoop is mostly written in the Java(tm) Programming Language,
there are a number of native libraries written in C++ that need
to be compiled. The following build instructions are taken from
http://wiki.apache.org/hadoop/HowToRelease
and describe how to build a tar file containing documentation and
32-bit and 64-bit native libraries on Linux. Before running the following
commands, you will need to setup your build machine according to
http://wiki.apache.org/hadoop/NativeHadoop
======================================================================
export JAVA_HOME=/path/to/32bit/jdk
export CFLAGS=-m32
export CXXFLAGS=-m32
ant -Dversion=X.Y.Z -Dcompile.native=true -Dcompile.c++=true \
-Dlibhdfs=1 -Dlibrecordio=true -Dxercescroot=/usr/local/xerces-c \
-Declipse.home=/usr/lib/eclipse \
-Dforrest.home=/usr/local/forrest -Djava5.home=/usr/local/jdk1.5 \
clean tar
export JAVA_HOME=/path/to/64bit/jdk
export CFLAGS=-m64
export CXXFLAGS=-m64
ant -Dversion=X.Y.Z -Dcompile.native=true -Dcompile.c++=true \
compile-core-native compile-c++ tar
======================================================================
Once each of the two builds above is complete, you will find a tar file
in the build directory.