You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/04/12 10:32:01 UTC
[incubator-opendal] branch reenable-webhdfs-test updated: FIx docker
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch reenable-webhdfs-test
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/reenable-webhdfs-test by this push:
new 68079b11 FIx docker
68079b11 is described below
commit 68079b119584bfb66178af071c0341ce28537ff8
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Apr 12 18:31:54 2023 +0800
FIx docker
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.github/workflows/service_test_webhdfs.yml | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/service_test_webhdfs.yml b/.github/workflows/service_test_webhdfs.yml
index d8253f51..e339954e 100644
--- a/.github/workflows/service_test_webhdfs.yml
+++ b/.github/workflows/service_test_webhdfs.yml
@@ -47,27 +47,29 @@ jobs:
# datanode will use ports: 9864
run: |
docker run -d \
+ --name namenode \
--network host \
-e CLUSTER_NAME=test \
-e WEBHDFS_CONF_dfs_webhdfs_enabled=true \
-e CORE_CONF_hadoop_http_staticuser_user=root \
- --health-cmd "curl -f http://localhost:9870" \
- --health-interval 5s \
- --health-timeout 5s \
- --health-retries 3 \
bde2020/hadoop-namenode:2.0.0-hadoop3.1.3-java8
+ until [ "`docker inspect -f {{.State.Health.Status}} namenode`"=="healthy" ]; do
+ sleep 0.5;
+ done;
+
docker run -d \
+ --name datanode \
--network host \
-e CLUSTER_NAME=test \
-e WEBHDFS_CONF_dfs_webhdfs_enabled=true \
-e CORE_CONF_hadoop_http_staticuser_user=root \
- --health-cmd "curl -f http://localhost:9864" \
- --health-interval 5s \
- --health-timeout 5s \
- --health-retries 3 \
bde2020/hadoop-datanode:2.0.0-hadoop3.1.3-java8
+ until [ "`docker inspect -f {{.State.Health.Status}} datanode`"=="healthy" ]; do
+ sleep 0.5;
+ done;
+
curl http://localhost:9870
- name: Setup Rust toolchain