bvaradar commented on code in PR #11628:
URL: https://github.com/apache/hudi/pull/11628#discussion_r1680160012


##########
packaging/hudi-cli-bundle/hudi-cli-with-bundle.sh:
##########
@@ -38,9 +38,15 @@ HUDI_CONF_DIR="${DIR}"/conf
 HUDI_AUX_LIB="${DIR}"/auxlib
 
 if [ ! -d $HUDI_AUX_LIB ]; then
-  echo "Downloading necessary auxiliary jars for Hudi CLI"
-  wget 
https://repo1.maven.org/maven2/org/glassfish/jakarta.el/$JAKARTA_EL_VERSION/jakarta.el-$JAKARTA_EL_VERSION.jar
 -P auxlib
-  wget 
https://repo1.maven.org/maven2/jakarta/el/jakarta.el-api/$JAKARTA_EL_VERSION/jakarta.el-api-$JAKARTA_EL_VERSION.jar
 -P auxlib
+  echo "Downloading necessary auxiliary jars for Hudi CLI to $HUDI_AUX_LIB"
+  wget 
https://repo1.maven.org/maven2/org/glassfish/jakarta.el/$JAKARTA_EL_VERSION/jakarta.el-$JAKARTA_EL_VERSION.jar
 -P $HUDI_AUX_LIB
+  wget 
https://repo1.maven.org/maven2/jakarta/el/jakarta.el-api/$JAKARTA_EL_VERSION/jakarta.el-api-$JAKARTA_EL_VERSION.jar
 -P $HUDI_AUX_LIB
+
+  if [ "$IS_S3_ENABLED" = "true" ]; then
+    echo "Adding hadoop-aws jars to auxlib"
+    wget 
https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.12.262/aws-java-sdk-bundle-1.12.262.jar
 -P $HUDI_AUX_LIB
+    wget 
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.3.4/hadoop-aws-3.3.4.jar
 -P $HUDI_AUX_LIB
+  fi

Review Comment:
   @prabodh1194 : hadoop-aws version needs to align withe HADOOP version 
installed on the the site where the cli is run. Also, aws-java-sdk-bundle's 
version needs to align with hadoop-aws version. So, we cannot hard-code the 
package version here. I would suggest to use an ENV variable HADOOP_VERSION and 
then instead of using wget, use mvn dependency:get of the specific hadoop-aws 
version which would also transitively download aws-java-sdk-bundle and get the 
jar file paths to use.
    



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to