summary refs log tree commit diff
path: root/nixos/modules/services/cluster
diff options
context:
space:
mode:
authorillustris <rharikrishnan95@gmail.com>2021-11-04 11:26:32 +0530
committerillustris <rharikrishnan95@gmail.com>2021-11-04 11:26:32 +0530
commit57225575dfa9f3630ba495a9fa9c57b576a23dff (patch)
tree2f48b0d50f9330983ad30281571b8473b0a8cc6f /nixos/modules/services/cluster
parent8331b56701d6df0140345e17a8ae4ac8240f33f9 (diff)
downloadnixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.tar
nixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.tar.gz
nixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.tar.bz2
nixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.tar.lz
nixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.tar.xz
nixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.tar.zst
nixpkgs-57225575dfa9f3630ba495a9fa9c57b576a23dff.zip
nixos/hadoop: fix errors in HTTPFS
Diffstat (limited to 'nixos/modules/services/cluster')
-rw-r--r--nixos/modules/services/cluster/hadoop/hdfs.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/nixos/modules/services/cluster/hadoop/hdfs.nix b/nixos/modules/services/cluster/hadoop/hdfs.nix
index 2b8c29b04f8..be667aa82d8 100644
--- a/nixos/modules/services/cluster/hadoop/hdfs.nix
+++ b/nixos/modules/services/cluster/hadoop/hdfs.nix
@@ -72,6 +72,13 @@ in
         '';
       };
       inherit restartIfChanged;
+      openFirewall = mkOption {
+        type = types.bool;
+        default = true;
+        description = ''
+          Open firewall ports for HTTPFS
+        '';
+      };
     };
   };
 
@@ -159,9 +166,7 @@ in
         wantedBy = [ "multi-user.target" ];
         inherit (cfg.hdfs.httpfs) restartIfChanged;
 
-        environment = {
-          HTTPFS_TEMP = cfg.hdfs.httpfs.tempPath;
-        };
+        environment.HTTPFS_TEMP = cfg.hdfs.httpfs.tempPath;
 
         preStart = ''
           mkdir -p $HTTPFS_TEMP