From d1206e123825e2db145843e20cfe25e17db277e4 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Fri, 22 Jul 2011 20:04:17 +0000 Subject: [PATCH] SQOOP-94. COMPILING.txt does not mention all dependencies. From: Aaron Kimball git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149981 13f79535-47bb-0310-9956-ffa450edef68 --- COMPILING.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/COMPILING.txt b/COMPILING.txt index 4ce9498a..7b275422 100644 --- a/COMPILING.txt +++ b/COMPILING.txt @@ -43,6 +43,32 @@ Furthermore, Sqoop's build can be instrumented with the following: * cobertura (1.9.4.1) for code coverage * checkstyle (5.x) for code style checks +Finally, while most of Sqoop's compilation dependencies are in the lib/ +directory, or retrieved via Ivy, the following dependencies must be installed +on your system: + +* HBase +* Zookeeper + +Both of these must be from the most recent version of CDH. These can be +installed on linux machines via yum or apt-get; any users may also use the +tarballs available at http://archive.cloudera.com/cdh/3/. + +== Configuring your build + +The location of HBase and Zookeeper must be specified to the Sqoop build via +ant properties. All compilation / testing requires the +hbase.home+ and ++zookeeper.home+ properties to be set. This can be done on the command line +(e.g.: +ant jar -Dhbase.home=/path/to/hbase -Dzookeeper.home=/path/to/zk+), or +in a properties file. + +Sqoop will automatically load properties out of a file named +'build.properties' in your Sqoop source root, or your home directory. You +should create such a file and include the lines: + +hbase.home=/path/to/hbase +zookeeper.home=/path/to/zk + == The Basics Sqoop is compiled with ant. Type +ant -p+ to see the list of available targets. @@ -87,6 +113,9 @@ ant test -Dthirdparty=true -Dsqoop.thirdparty.lib.dir=/path/to/jdbc/drivers/ ++++ +Note that +sqoop.thirdparty.lib.dir+ can also be specified in ++build.properties+. + == Multiple Hadoop Distributions Sqoop can be compiled against different versions of Hadoop. Both the svn