From 35e35bc328cfaa0dbed3ad564913bbef512d75e5 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Fri, 22 Jul 2011 20:04:01 +0000 Subject: [PATCH] Sqoop can compile against locally-installed Hadoop From: Aaron Kimball git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149929 13f79535-47bb-0310-9956-ffa450edef68 --- COMPILING.txt | 20 ++++++++ build.xml | 129 ++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 124 insertions(+), 25 deletions(-) diff --git a/COMPILING.txt b/COMPILING.txt index 0d6e87d7..0a000d20 100644 --- a/COMPILING.txt +++ b/COMPILING.txt @@ -105,6 +105,26 @@ ant jar -Dhadoop.dist=cloudera To switch between builds, you will need to clear Ivy's dependency cache: +ant veryclean+ +=== Using a Local Hadoop Installation + +Sqoop can be compiled against a locally-installed version of Sqoop, +bypassing the maven repository. To do this you will need to set +three properties: + +- hadoop.dist should be set to "local" +- hadoop.shim should be set to "cloudera" or "apache", to tell Sqoop whether + to build the Cloudera or Apache-specific shim jar +- hadoop.home should be set to the path where Hadoop is installed. + +For example, the following will compile Sqoop against a locally-installed +version of CDH. + +++++ +ant jar jar-one-shim -Dhadoop.dist=local -Dhadoop.shim=cloudera \ + -Dhadoop.home=/usr/lib/hadoop +++++ + + == Code Quality Analysis We have three tools which can be used to analyze Sqoop's code quality. diff --git a/build.xml b/build.xml index bbe5fad4..dcb71afb 100644 --- a/build.xml +++ b/build.xml @@ -142,19 +142,6 @@ - - - - - - - - - - - - - @@ -162,6 +149,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + +