Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env:
# Minimum required Java version for running Ozone is defined in pom.xml (javac.version).
TEST_JAVA_VERSION: 17 # JDK version used by CI build and tests; should match the JDK version in apache/ozone-runner image
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
HADOOP_IMAGE: ghcr.io/apache/hadoop
OZONE_IMAGE: ghcr.io/apache/ozone
OZONE_RUNNER_IMAGE: ghcr.io/apache/ozone-runner
OZONE_WITH_COVERAGE: ${{ github.event_name == 'push' }}
Expand Down
6 changes: 3 additions & 3 deletions hadoop-ozone/dist/src/main/compose/common/hadoop-secure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

services:
rm:
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
image: ${HADOOP_TEST_IMAGE}
hostname: rm
dns_search: .
volumes:
Expand All @@ -35,7 +35,7 @@ services:
profiles:
- hadoop
nm:
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
image: ${HADOOP_TEST_IMAGE}
hostname: nm
dns_search: .
volumes:
Expand All @@ -54,7 +54,7 @@ services:
profiles:
- hadoop
jhs:
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
image: ${HADOOP_TEST_IMAGE}
container_name: jhs
hostname: jhs
dns_search: .
Expand Down
28 changes: 16 additions & 12 deletions hadoop-ozone/dist/src/main/compose/common/hadoop-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ if [[ ${SECURITY_ENABLED} == "true" ]]; then
fi
export COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yaml}":../common/${extra_compose_file}

# need temp variables because maven filtering replaces only one item per line
hadoop2_version="${hadoop2.version}"
hadoop_version="${hadoop.version}"

: ${HADOOP_TEST_VERSIONS:="apache/hadoop:${hadoop2_version} flokkr/hadoop:3.1.2 apache/hadoop:${hadoop_version}"}
: ${HADOOP_IMAGE:="apache/hadoop"}
: ${HADOOP_TEST_IMAGES:=""}

if [[ -z "${HADOOP_TEST_IMAGES}" ]]; then
# hadoop2 and flokkr images are only available from Docker Hub
HADOOP_TEST_IMAGES="${HADOOP_TEST_IMAGES} apache/hadoop:${hadoop2.version}"
HADOOP_TEST_IMAGES="${HADOOP_TEST_IMAGES} flokkr/hadoop:3.1.2"
HADOOP_TEST_IMAGES="${HADOOP_TEST_IMAGES} ${HADOOP_IMAGE}:${hadoop.version}"
fi

export HADOOP_MAJOR_VERSION=3
export HADOOP_VERSION=unused # will be set for each test version below
export HADOOP_TEST_IMAGE="${HADOOP_IMAGE}:${hadoop.version}"
export OZONE_REPLICATION_FACTOR=3

# shellcheck source=/dev/null
Expand All @@ -48,10 +52,10 @@ export OZONE_DIR=/opt/ozone
# shellcheck source=/dev/null
source "$COMPOSE_DIR/../testlib.sh"

for test_version in $HADOOP_TEST_VERSIONS; do
export HADOOP_IMAGE="${test_version%%:*}"
export HADOOP_VERSION="${test_version##*:}"
export HADOOP_MAJOR_VERSION=${HADOOP_VERSION%%.*}
for HADOOP_TEST_IMAGE in $HADOOP_TEST_IMAGES; do
export HADOOP_TEST_IMAGE
hadoop_version="${HADOOP_TEST_IMAGE##*:}"
export HADOOP_MAJOR_VERSION=${hadoop_version%%.*}

docker-compose --ansi never --profile hadoop up -d nm rm

Expand All @@ -62,10 +66,10 @@ for test_version in $HADOOP_TEST_VERSIONS; do
fi

for scheme in o3fs ofs; do
execute_robot_test rm -v "SCHEME:${scheme}" -N "hadoop-${HADOOP_VERSION}-hadoopfs-${scheme}" ozonefs/hadoopo3fs.robot
execute_robot_test rm -v "SCHEME:${scheme}" -N "hadoop-${hadoop_version}-hadoopfs-${scheme}" ozonefs/hadoopo3fs.robot
# TODO secure MapReduce test is failing with 2.7 due to some token problem
if [[ ${SECURITY_ENABLED} != "true" ]] || [[ ${HADOOP_MAJOR_VERSION} == "3" ]]; then
execute_robot_test rm -v "SCHEME:${scheme}" -N "hadoop-${HADOOP_VERSION}-mapreduce-${scheme}" mapreduce.robot
execute_robot_test rm -v "SCHEME:${scheme}" -N "hadoop-${hadoop_version}-mapreduce-${scheme}" mapreduce.robot
fi
done

Expand Down
4 changes: 2 additions & 2 deletions hadoop-ozone/dist/src/main/compose/common/hadoop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

services:
rm:
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
image: ${HADOOP_TEST_IMAGE}
hostname: rm
volumes:
- ../..:/opt/ozone
Expand All @@ -31,7 +31,7 @@ services:
profiles:
- hadoop
nm:
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
image: ${HADOOP_TEST_IMAGE}
hostname: nm
volumes:
- ../..:/opt/ozone
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dist/src/main/compose/ozonesecure-ha/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

HDDS_VERSION=${hdds.version}
HADOOP_IMAGE=apache/hadoop
HADOOP_VERSION=${hadoop.version}
OZONE_RUNNER_VERSION=${docker.ozone-runner.version}
OZONE_RUNNER_IMAGE=apache/ozone-runner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
ozone_net:
ipv4_address: 172.25.0.100
kms:
image: apache/hadoop:${HADOOP_VERSION}
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
dns_search: .
ports:
- 9600:9600
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dist/src/main/compose/ozonesecure-mr/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

HDDS_VERSION=${hdds.version}
HADOOP_IMAGE=apache/hadoop
HADOOP_VERSION=${hadoop.version}
OZONE_RUNNER_VERSION=${docker.ozone-runner.version}
OZONE_RUNNER_IMAGE=apache/ozone-runner
OZONE_TESTKRB5_IMAGE=${docker.ozone-testkr5b.image}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- ../_keytabs:/etc/security/keytabs
command: ["krb5kdc","-n"]
kms:
image: apache/hadoop:3
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
dns_search: .
ports:
- 9600:9600
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dist/src/main/compose/ozonesecure/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

HDDS_VERSION=${hdds.version}
HADOOP_IMAGE=apache/hadoop
HADOOP_VERSION=${hadoop.version}
OZONE_RUNNER_VERSION=${docker.ozone-runner.version}
OZONE_RUNNER_IMAGE=apache/ozone-runner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- ../_keytabs:/etc/security/keytabs
command: ["krb5kdc","-n"]
kms:
image: apache/hadoop:${HADOOP_VERSION}
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
hostname: kms
dns_search: .
ports:
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dist/src/main/compose/upgrade/compose/ha/.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

HADOOP_IMAGE=apache/hadoop
HADOOP_VERSION=${hadoop.version}
HDDS_VERSION=${hdds.version}
OZONE_RUNNER_VERSION=${docker.ozone-runner.version}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ services:
- docker-config
environment:
HADOOP_CONF_DIR: /opt/hadoop/etc/hadoop
image: apache/hadoop:${HADOOP_VERSION}
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
networks:
net:
ipv4_address: 10.9.0.3
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dist/src/main/compose/xcompat/.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
HDDS_VERSION=${hdds.version}
OZONE_RUNNER_VERSION=${docker.ozone-runner.version}
OZONE_RUNNER_IMAGE=apache/ozone-runner
HADOOP_IMAGE=apache/hadoop
HADOOP_VERSION=${hadoop.version}
OZONE_TESTKRB5_IMAGE=${docker.ozone-testkr5b.image}
OZONE_IMAGE=${docker.ozone.image}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- ../_keytabs:/etc/security/keytabs
command: [ "krb5kdc","-n" ]
kms:
image: apache/hadoop:${HADOOP_VERSION}
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
hostname: kms
dns_search: .
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- ../_keytabs:/etc/security/keytabs
command: [ "krb5kdc","-n" ]
kms:
image: apache/hadoop:${HADOOP_VERSION}
image: ${HADOOP_IMAGE}:${HADOOP_VERSION}
hostname: kms
dns_search: .
ports:
Expand Down