diff --git a/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/20_repository_create.yml b/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/20_repository_create.yml index 117d9a74d87d9..0db6f1b01abff 100644 --- a/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/20_repository_create.yml +++ b/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/20_repository_create.yml @@ -14,6 +14,7 @@ path: "/user/elasticsearch/test/repository_create" security: principal: "elasticsearch@BUILD.ELASTIC.CO" + conf.dfs.encrypt.data.transfer.cipher.suites: "AES/CTR/NoPadding" # Get repository - do: diff --git a/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/30_snapshot.yml b/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/30_snapshot.yml index 01b137279714a..365f0243a1f2b 100644 --- a/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/30_snapshot.yml +++ b/plugins/repository-hdfs/src/test/resources/rest-api-spec/test/secure_hdfs_repository/30_snapshot.yml @@ -15,6 +15,7 @@ path: "/user/elasticsearch/test/snapshot" security: principal: "elasticsearch@BUILD.ELASTIC.CO" + conf.dfs.encrypt.data.transfer.cipher.suites: "AES/CTR/NoPadding" # Create index - do: diff --git a/test/fixtures/hdfs2-fixture/src/main/java/hdfs/MiniHDFS.java b/test/fixtures/hdfs2-fixture/src/main/java/hdfs/MiniHDFS.java index ee993fec74eb4..0a26f5d82ac17 100644 --- a/test/fixtures/hdfs2-fixture/src/main/java/hdfs/MiniHDFS.java +++ b/test/fixtures/hdfs2-fixture/src/main/java/hdfs/MiniHDFS.java @@ -84,6 +84,7 @@ public static void main(String[] args) throws Exception { cfg.set(DFSConfigKeys.DFS_BLOCK_ACCESS_TOKEN_ENABLE_KEY, "true"); cfg.set(DFSConfigKeys.IGNORE_SECURE_PORTS_FOR_TESTING_KEY, "true"); cfg.set(DFSConfigKeys.DFS_ENCRYPT_DATA_TRANSFER_KEY, "true"); + cfg.set(DFSConfigKeys.DFS_ENCRYPT_DATA_TRANSFER_CIPHER_SUITES_KEY, "AES/CTR/NoPadding"); } UserGroupInformation.setConfiguration(cfg);