rclone/fstest/testserver/images/test-hdfs
2021-01-27 18:16:58 +00:00
..
core-site.xml hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
Dockerfile hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
hdfs-site.xml hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
httpfs-site.xml HDFS (Hadoop Distributed File System) implementation - #42 2021-01-07 09:48:51 +00:00
kdc.conf hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
kms-site.xml HDFS (Hadoop Distributed File System) implementation - #42 2021-01-07 09:48:51 +00:00
krb5.conf hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
mapred-site.xml HDFS (Hadoop Distributed File System) implementation - #42 2021-01-07 09:48:51 +00:00
README.md hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
run.sh hdfs: support kerberos authentication #42 2021-01-27 18:16:58 +00:00
yarn-site.xml HDFS (Hadoop Distributed File System) implementation - #42 2021-01-07 09:48:51 +00:00

Test HDFS

This is a docker image for rclone's integration tests which runs an hdfs filesystem in a docker image.

Build

docker build --rm -t rclone/test-hdfs .
docker push rclone/test-hdfs

Test

configure remote:

[TestHdfs]
type = hdfs
namenode = 127.0.0.1:8020
username = root

run tests

cd backend/hdfs
GO111MODULE=on go test -v

hdfs logs will be available in .stdout.log and .stderr.log

Kerberos

test can be run against kerberos-enabled hdfs

  1. configure local krb5.conf

    [libdefaults]
        default_realm = KERBEROS.RCLONE
    [realms]
        KERBEROS.RCLONE = {
            kdc = localhost
        }
    
  2. enable kerberos in remote configuration

    [TestHdfs]
    ...
    service_principal_name = hdfs/localhost
    data_transfer_protection = privacy
    
  3. run test

    cd backend/hdfs
    KERBEROS=true GO111MODULE=on go test -v