new feature: run hdfs-native behavior tests against Kerberized MiniDFS in CI (blocked on hdfs-native#313)

Đang mở
#9,367 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker-compose, github-actions, hadoop, rust

Hướng nghiên cứu

Start with .github/services/hdfs_native/hdfs_native_cluster/action.yml and fixtures/hdfs/docker-compose-hdfs-cluster.yml to see how the existing CI fixture is configured. The work is blocked on Kimahriman/hdfs-native#313, implemented by #355; check that the cluster image is available before adding the security and permissions enabled fixture variants under .github/services/hdfs_native/. Done means CI exercises the behavior tests with Kerberos settings and with user against enforced permissions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement services/hdfs_native
Feature Description

Run the hdfs-native behavior tests in CI against a Kerberized MiniDFS (MiniKdc), and against a simple-auth MiniDFS that enforces permissions, so CI covers the user and Kerberos settings.

Problem and Solution

#9358 adds config_dir, user, kerberos_principal, kerberos_keytab and kerberos_cache to the hdfs-native service. Those settings were checked locally on MiniDFS with MiniKdc. CI cannot check them today. The hdfs_native_cluster fixture (.github/services/hdfs_native/hdfs_native_cluster/action.yml) starts fixtures/hdfs/docker-compose-hdfs-cluster.yml, which sets dfs_permissions_enabled: false and has no KDC. A run with user set therefore passes whether or not the setting takes effect, and Kerberos is never exercised.

Once the MiniDFS test cluster is published as a container image, add two fixture variants under .github/services/hdfs_native/:

  • security mode with MiniKdc. It runs the behavior tests with kerberos_principal and kerberos_keytab from the cluster's generated keytab, reading the cluster's Hadoop configuration through config_dir.
  • Plain mode with permissions enabled. It runs the behavior tests with user set.
Additional Context
  • Blocked on Kimahriman/hdfs-native#313 ("Publish the minidfs test cluster as a container image"), which Kimahriman/hdfs-native#355 implements.
  • Refs #9038 and #9358.
Are you willing to contribute to the development of this feature?
  • Yes, I am willing to contribute to the development of this feature.

Drafted with AI assistance (Claude Code, Claude Opus 5.5) and reviewed by the author.

Ngôn ngữ chính
Rust
Star
5.5k
Fork
869
Merge trung bình
8 giờ 2 phút
Pull request đã merge (30 ngày)
862

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/opendal

Tất cả issue của apache/opendal

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.