From e825dc560c18d5118dbc8811a178b8c47a966c02 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Fri, 22 Jul 2011 20:04:13 +0000 Subject: [PATCH] SQOOP-75. Allow configuration of ManagerFactories through a configuration subdirectory. Files in conf/managers.d/ are treated as configuration files that specify classes for sqoop.connection.factories. If this property is unset, these files are processed in order. ClassLoaderStack no longer attempts to load a jar if the test class is already available with the current set of ClassLoaders. From: Aaron Kimball git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149966 13f79535-47bb-0310-9956-ffa450edef68 --- bin/configure-sqoop | 1 + build.xml | 1 + conf/.gitignore | 1 + conf/sqoop-site-template.xml | 12 +- src/java/com/cloudera/sqoop/ConnFactory.java | 118 ++++++++++++++++++ .../cloudera/sqoop/util/ClassLoaderStack.java | 15 ++- 6 files changed, 145 insertions(+), 3 deletions(-) diff --git a/bin/configure-sqoop b/bin/configure-sqoop index 47e5d877..4c792920 100755 --- a/bin/configure-sqoop +++ b/bin/configure-sqoop @@ -113,6 +113,7 @@ fi add_to_classpath ${SQOOP_JAR_DIR} export SQOOP_CLASSPATH +export SQOOP_CONF_DIR export SQOOP_JAR_DIR export SQOOP_SHIM_DIR export HADOOP_CLASSPATH="${SQOOP_CLASSPATH}:${HADOOP_CLASSPATH}" diff --git a/build.xml b/build.xml index 35d59877..d7a7311c 100644 --- a/build.xml +++ b/build.xml @@ -488,6 +488,7 @@ + diff --git a/conf/.gitignore b/conf/.gitignore index c0b9de64..79f76e47 100644 --- a/conf/.gitignore +++ b/conf/.gitignore @@ -13,3 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. /sqoop-site.xml +/managers.d diff --git a/conf/sqoop-site-template.xml b/conf/sqoop-site-template.xml index 0f06f84a..c9e2b00f 100644 --- a/conf/sqoop-site-template.xml +++ b/conf/sqoop-site-template.xml @@ -22,8 +22,16 @@