jojochuang commented on code in PR #4963:
URL: https://github.com/apache/ozone/pull/4963#discussion_r1239455479
##########
hadoop-ozone/dist/src/main/compose/common/hadoop-test.sh:
##########
@@ -33,9 +33,15 @@ export OZONE_DIR=/opt/ozone
# shellcheck source=/dev/null
source "$COMPOSE_DIR/../testlib.sh"
-for HADOOP_VERSION in 2.7.3 3.1.2 3.2.2 3.3.1; do
+for HADOOP_VERSION in 2.7.3 3.1.2 3.2.2 3.3.5; do
export HADOOP_VERSION
export HADOOP_MAJOR_VERSION=${HADOOP_VERSION%%.*}
+ # Check if $HADOOP_VERSION starts with the prefix "3.3."
+ if [[ $HADOOP_VERSION == 3.3.* ]]; then
Review Comment:
This is exactly what ChatGPT is for! I asked ChatGPT and it answered:
```
#!/bin/bash
# Extracting X, Y, and Z from HADOOP_VERSION
IFS='.' read -r -a version_parts <<< "$HADOOP_VERSION"
X=${version_parts[0]}
Y=${version_parts[1]}
Z=${version_parts[2]}
# Checking the condition and printing "hello world" if met
if [[ $X -eq 3 && $Y -ge 3 ]]; then
echo "hello world"
fi
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]