comphead commented on code in PR #3111:
URL: https://github.com/apache/iceberg-rust/pull/3111#discussion_r4019032222


##########
dev/docker-compose.yaml:
##########
@@ -147,6 +147,49 @@ services:
       timeout: 5s
       retries: 5
 
+  # 
=============================================================================
+  # HDFS - single-node NameNode + DataNode for HDFS tests
+  # 
=============================================================================
+  # hdfs-native connects to DataNodes by their registered IP — unroutable on
+  # a docker bridge, hence host networking (needs Linux or a recent runtime).
+  hdfs-namenode:
+    image: apache/hadoop:3.5.0
+    network_mode: "host"
+    command: ["hdfs", "namenode"]
+    environment:
+      ENSURE_NAMENODE_DIR: "/tmp/hadoop-root/dfs/name"
+    extra_hosts:
+      - "docker-desktop:127.0.0.1"
+    volumes:
+      - ./hdfs/core-site.xml:/opt/hadoop/etc/hadoop/core-site.xml:ro
+      - ./hdfs/hdfs-site.xml:/opt/hadoop/etc/hadoop/hdfs-site.xml:ro
+    healthcheck:
+      test: ["CMD-SHELL", "hdfs dfsadmin -safemode get | grep -q OFF"]
+      interval: 5s
+      timeout: 15s
+      retries: 30
+      start_period: 30s
+
+  hdfs-datanode:

Review Comment:
   interesting can we test on multi datanodes



-- 
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]

Reply via email to