From 8331b56701d6df0140345e17a8ae4ac8240f33f9 Mon Sep 17 00:00:00 2001 From: illustris Date: Thu, 4 Nov 2021 11:15:21 +0530 Subject: [PATCH] nixos/hadoop: correct openFirewall options --- nixos/modules/services/cluster/hadoop/hdfs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/cluster/hadoop/hdfs.nix b/nixos/modules/services/cluster/hadoop/hdfs.nix index 52f951a6c5f4..2b8c29b04f86 100644 --- a/nixos/modules/services/cluster/hadoop/hdfs.nix +++ b/nixos/modules/services/cluster/hadoop/hdfs.nix @@ -134,7 +134,7 @@ in }; }; - networking.firewall.allowedTCPPorts = (mkIf cfg.hdfs.datanode.openFirewall [ + networking.firewall.allowedTCPPorts = (mkIf cfg.hdfs.journalnode.openFirewall [ 8480 # dfs.journalnode.http-address 8485 # dfs.journalnode.rpc-address ]); @@ -174,7 +174,7 @@ in Restart = "always"; }; }; - networking.firewall.allowedTCPPorts = (mkIf cfg.hdfs.datanode.openFirewall [ + networking.firewall.allowedTCPPorts = (mkIf cfg.hdfs.httpfs.openFirewall [ 14000 # httpfs.http.port ]); })