sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject svn commit: r1292917 - in /incubator/sqoop/trunk: bin/configure-sqoop conf/sqoop-env-template.sh
Date Thu, 23 Feb 2012 19:37:55 GMT
Author: jarcec
Date: Thu Feb 23 19:37:54 2012
New Revision: 1292917

URL: http://svn.apache.org/viewvc?rev=1292917&view=rev
Log:
SQOOP-438. allow sourcing of sqoop-env.sh to set various environment variables

(Arpit Gupta via Jarek Jarcec Cecho)

Added:
    incubator/sqoop/trunk/conf/sqoop-env-template.sh
Modified:
    incubator/sqoop/trunk/bin/configure-sqoop

Modified: incubator/sqoop/trunk/bin/configure-sqoop
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/bin/configure-sqoop?rev=1292917&r1=1292916&r2=1292917&view=diff
==============================================================================
--- incubator/sqoop/trunk/bin/configure-sqoop (original)
+++ incubator/sqoop/trunk/bin/configure-sqoop Thu Feb 23 19:37:54 2012
@@ -32,6 +32,12 @@ if [ -z "$SQOOP_HOME" ]; then
   export SQOOP_HOME=${bin}/..
 fi
 
+SQOOP_CONF_DIR=${SQOOP_CONF_DIR:-${SQOOP_HOME}/conf}
+
+if [ -f "${SQOOP_CONF_DIR}/sqoop-env.sh" ]; then
+  . "${SQOOP_CONF_DIR}/sqoop-env.sh"
+fi
+
 # Find paths to our dependency systems. If they are unset, use CDH defaults.
 
 if [ -z "${HADOOP_HOME}" ]; then
@@ -89,7 +95,6 @@ if [ -d "${ZOOCFGDIR}" ]; then
   SQOOP_CLASSPATH=$ZOOCFGDIR:$SQOOP_CLASSPATH
 fi
 
-SQOOP_CONF_DIR=${SQOOP_CONF_DIR:-${SQOOP_HOME}/conf}
 SQOOP_CLASSPATH=${SQOOP_CONF_DIR}:${SQOOP_CLASSPATH}
 
 # If there's a build subdir, use Ivy-retrieved dependencies too.

Added: incubator/sqoop/trunk/conf/sqoop-env-template.sh
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/conf/sqoop-env-template.sh?rev=1292917&view=auto
==============================================================================
--- incubator/sqoop/trunk/conf/sqoop-env-template.sh (added)
+++ incubator/sqoop/trunk/conf/sqoop-env-template.sh Thu Feb 23 19:37:54 2012
@@ -0,0 +1,32 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# included in all the hadoop scripts with source command
+# should not be executable directly
+# also should not be passed any arguments, since we need original $*
+
+# Set Hadoop-specific environment variables here.
+
+#Set path to where bin/hadoop is available
+#export HADOOP_HOME=
+
+#set the path to where bin/hbase is available
+#export HBASE_HOME=
+
+#Set the path to where bin/hive is available
+#export HIVE_HOME=
+
+#Set the path for where zookeper config dir is
+#export ZOOCFGDIR=



Mime
View raw message