Repository: flink
Updated Branches:
  refs/heads/master 58baf9f9c -> 9d5a7857f


[FLINK-8668] Remove "hadoop classpath" from config.sh

This also removes usage of "hdfs classpath".


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/9d5a7857
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/9d5a7857
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/9d5a7857

Branch: refs/heads/master
Commit: 9d5a7857ffb758f2dd04556b91038e9d5ca51939
Parents: 58baf9f
Author: Aljoscha Krettek <aljoscha.kret...@gmail.com>
Authored: Fri Feb 16 10:03:24 2018 +0100
Committer: Aljoscha Krettek <aljoscha.kret...@gmail.com>
Committed: Mon Feb 19 10:30:56 2018 +0100

----------------------------------------------------------------------
 flink-dist/src/main/flink-bin/bin/config.sh | 25 +-----------------------
 1 file changed, 1 insertion(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/9d5a7857/flink-dist/src/main/flink-bin/bin/config.sh
----------------------------------------------------------------------
diff --git a/flink-dist/src/main/flink-bin/bin/config.sh 
b/flink-dist/src/main/flink-bin/bin/config.sh
index 2ee60fb..f111ea7 100755
--- a/flink-dist/src/main/flink-bin/bin/config.sh
+++ b/flink-dist/src/main/flink-bin/bin/config.sh
@@ -371,31 +371,8 @@ fi
 
 
INTERNAL_HADOOP_CLASSPATHS="${HADOOP_CLASSPATH}:${HADOOP_CONF_DIR}:${YARN_CONF_DIR}"
 
-# check if the "hadoop" binary is available, if yes, use that to augment the 
CLASSPATH
-if command -v hadoop >/dev/null 2>&1; then
-    echo "Using the result of 'hadoop classpath' to augment the Hadoop 
classpath: `hadoop classpath`"
-    INTERNAL_HADOOP_CLASSPATHS="${INTERNAL_HADOOP_CLASSPATHS}:`hadoop 
classpath`"
-fi
-
 if [ -n "${HBASE_CONF_DIR}" ]; then
-    # Look for hbase command in HBASE_HOME or search PATH.
-    if [ -n "${HBASE_HOME}" ]; then
-        HBASE_PATH="${HBASE_HOME}/bin"
-        HBASE_COMMAND=`command -v "${HBASE_PATH}/hbase"`
-    else
-        HBASE_PATH=$PATH
-        HBASE_COMMAND=`command -v hbase`
-    fi
-
-    # Whether the hbase command was found.
-    if [[ $? -eq 0 ]]; then
-        # Setup the HBase classpath. We add the HBASE_CONF_DIR last to ensure 
the right config directory is used.
-        
INTERNAL_HADOOP_CLASSPATHS="${INTERNAL_HADOOP_CLASSPATHS}:`${HBASE_COMMAND} 
classpath`:${HBASE_CONF_DIR}"
-    else
-        echo "HBASE_CONF_DIR=${HBASE_CONF_DIR} is set but 'hbase' command was 
not found in ${HBASE_PATH} so classpath could not be updated."
-    fi
-
-    unset HBASE_COMMAND HBASE_PATH
+    
INTERNAL_HADOOP_CLASSPATHS="${INTERNAL_HADOOP_CLASSPATHS}:${HBASE_CONF_DIR}"
 fi
 
 # Auxilliary function which extracts the name of host from a line which

Reply via email to