Fix the installation of the Swift Hadoop connector (CDH)
The jar file with the same name already exists because it is installed with the rest of the Cloudera packages, but it must be overwritten by our version with Swift support. So do not exit if the jar already exists. Story: 2001909 Task: 14422 Change-Id: Ibc0a5f7348365f2a6c5658846ee74aa92e78314b
This commit is contained in:
parent
93856090e5
commit
8cc87685cc
@ -8,7 +8,6 @@ HADOOP_SWIFT_BUILD_LOCATION="https://tarballs.openstack.org/sahara-extra/dist/ha
|
|||||||
SWIFT_LIB_URI="$HADOOP_SWIFT_BUILD_LOCATION/hadoop-openstack-${hadoop}.jar"
|
SWIFT_LIB_URI="$HADOOP_SWIFT_BUILD_LOCATION/hadoop-openstack-${hadoop}.jar"
|
||||||
HADOOP_SWIFT_JAR_NAME="hadoop-openstack.jar"
|
HADOOP_SWIFT_JAR_NAME="hadoop-openstack.jar"
|
||||||
|
|
||||||
if [ ! -f $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME ]; then
|
|
||||||
if [ $test_only -eq 0 ]; then
|
if [ $test_only -eq 0 ]; then
|
||||||
wget -O $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME $SWIFT_LIB_URI
|
wget -O $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME $SWIFT_LIB_URI
|
||||||
|
|
||||||
@ -21,5 +20,3 @@ if [ ! -f $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME ]; then
|
|||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ HADOOP_SWIFT_BUILD_LOCATION="https://tarballs.openstack.org/sahara-extra/dist/ha
|
|||||||
SWIFT_LIB_URI="$HADOOP_SWIFT_BUILD_LOCATION/hadoop-openstack-${hadoop}.jar"
|
SWIFT_LIB_URI="$HADOOP_SWIFT_BUILD_LOCATION/hadoop-openstack-${hadoop}.jar"
|
||||||
HADOOP_SWIFT_JAR_NAME="hadoop-openstack.jar"
|
HADOOP_SWIFT_JAR_NAME="hadoop-openstack.jar"
|
||||||
|
|
||||||
if [ ! -f $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME ]; then
|
|
||||||
if [ $test_only -eq 0 ]; then
|
if [ $test_only -eq 0 ]; then
|
||||||
wget -O $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME $SWIFT_LIB_URI
|
wget -O $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME $SWIFT_LIB_URI
|
||||||
|
|
||||||
@ -21,5 +20,3 @@ if [ ! -f $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME ]; then
|
|||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ HADOOP_SWIFT_BUILD_LOCATION="https://tarballs.openstack.org/sahara-extra/dist/ha
|
|||||||
SWIFT_LIB_URI="$HADOOP_SWIFT_BUILD_LOCATION/hadoop-openstack-${hadoop}.jar"
|
SWIFT_LIB_URI="$HADOOP_SWIFT_BUILD_LOCATION/hadoop-openstack-${hadoop}.jar"
|
||||||
HADOOP_SWIFT_JAR_NAME="hadoop-openstack.jar"
|
HADOOP_SWIFT_JAR_NAME="hadoop-openstack.jar"
|
||||||
|
|
||||||
if [ ! -f $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME ]; then
|
|
||||||
if [ $test_only -eq 0 ]; then
|
if [ $test_only -eq 0 ]; then
|
||||||
wget -O $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME $SWIFT_LIB_URI
|
wget -O $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME $SWIFT_LIB_URI
|
||||||
|
|
||||||
@ -21,5 +20,3 @@ if [ ! -f $hdfs_lib_dir/$HADOOP_SWIFT_JAR_NAME ]; then
|
|||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user