summary refs log tree commit diff
path: root/nixos/modules/services/cluster/hadoop/default.nix
diff options
context:
space:
mode:
authorillustris <rharikrishnan95@gmail.com>2021-11-02 18:34:04 +0530
committerillustris <rharikrishnan95@gmail.com>2021-11-03 22:44:25 +0530
commit9ca4363191f05147d0bd23ffb61838d9c1ee890e (patch)
treea0919cc91f4b815d4288a30e6756833164ccb489 /nixos/modules/services/cluster/hadoop/default.nix
parent39c007ce9cc3f46db70bde794323b6cbfccfe62a (diff)
downloadnixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.tar
nixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.tar.gz
nixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.tar.bz2
nixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.tar.lz
nixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.tar.xz
nixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.tar.zst
nixpkgs-9ca4363191f05147d0bd23ffb61838d9c1ee890e.zip
nixos/hadoop: add HTTPFS
Diffstat (limited to 'nixos/modules/services/cluster/hadoop/default.nix')
-rw-r--r--nixos/modules/services/cluster/hadoop/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/nixos/modules/services/cluster/hadoop/default.nix b/nixos/modules/services/cluster/hadoop/default.nix
index da3e47b95d4..e4dcfde80fb 100644
--- a/nixos/modules/services/cluster/hadoop/default.nix
+++ b/nixos/modules/services/cluster/hadoop/default.nix
@@ -70,6 +70,17 @@ with lib;
       description = "Hadoop yarn-site.xml definition";
     };
 
+    httpfsSite = mkOption {
+      default = { };
+      type = types.attrsOf types.anything;
+      example = literalExpression ''
+        {
+          "hadoop.http.max.threads" = 500;
+        }
+      '';
+      description = "Hadoop httpfs-site.xml definition";
+    };
+
     log4jProperties = mkOption {
       default = "${cfg.package}/lib/${cfg.package.untarDir}/etc/hadoop/log4j.properties";
       type = types.path;
@@ -118,7 +129,8 @@ with lib;
 
   config = mkMerge [
     (mkIf (builtins.hasAttr "yarn" config.users.users ||
-           builtins.hasAttr "hdfs" config.users.users) {
+           builtins.hasAttr "hdfs" config.users.users ||
+           builtins.hasAttr "httpfs" config.users.users) {
       users.groups.hadoop = {
         gid = config.ids.gids.hadoop;
       };