Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created December 23, 2011 14:15
Show Gist options
  • Save butlermh/1514319 to your computer and use it in GitHub Desktop.
Save butlermh/1514319 to your computer and use it in GitHub Desktop.
Snippet from Hadoop build script
# note you need to set the following environment variables
# NATIVE - the native LZO library location
# ANT17 - your Ant 1.7 installation
# FORREST_HOME - your Apache Forrest 0.8 installation
# HADOOP_VERSION - the version you are giving Hadoop
# JAVA_HOME - your Java isntallation
env CFLAGS=-m64 CXXFLAGS=-m64 C_INCLUDE_PATH=$NATIVE/include
LIBRARY_PATH=$NATIVE/lib LD_LIBRARY_PATH=$NATIVE/lib
JAVA_LIBRARY_PATH=$NATIVE/lib $ANT17 -Dcompile.native=true
-Dcompile.c++=true -Dlibrecordio=true -Dtest.junit.output.format=xml
-Dtest.output=yes -Djava5.home=$JAVA_HOME -Dforrest.home=$FORREST_HOME
-Dversion=$HADOOP_VERSION clean compile package mvn-install test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment