nixos/hadoop: fix lib function calls

This commit is contained in:
illustris 2024-12-13 21:19:06 +05:30
parent 79439eadd8
commit 61dd3fdae2
No known key found for this signature in database
GPG Key ID: 56C8FC0B899FEFA3

View File

@ -188,15 +188,15 @@ in
services.hadoop.yarnSiteInternal = services.hadoop.yarnSiteInternal =
with cfg.yarn.nodemanager; with cfg.yarn.nodemanager;
mkMerge [ lib.mkMerge [
({ ({
"yarn.nodemanager.local-dirs" = mkIf (localDir != null) (concatStringsSep "," localDir); "yarn.nodemanager.local-dirs" = lib.mkIf (localDir != null) (concatStringsSep "," localDir);
"yarn.scheduler.maximum-allocation-vcores" = resource.maximumAllocationVCores; "yarn.scheduler.maximum-allocation-vcores" = resource.maximumAllocationVCores;
"yarn.scheduler.maximum-allocation-mb" = resource.maximumAllocationMB; "yarn.scheduler.maximum-allocation-mb" = resource.maximumAllocationMB;
"yarn.nodemanager.resource.cpu-vcores" = resource.cpuVCores; "yarn.nodemanager.resource.cpu-vcores" = resource.cpuVCores;
"yarn.nodemanager.resource.memory-mb" = resource.memoryMB; "yarn.nodemanager.resource.memory-mb" = resource.memoryMB;
}) })
(mkIf useCGroups { (lib.mkIf useCGroups {
"yarn.nodemanager.linux-container-executor.cgroups.hierarchy" = "/hadoop-yarn"; "yarn.nodemanager.linux-container-executor.cgroups.hierarchy" = "/hadoop-yarn";
"yarn.nodemanager.linux-container-executor.resources-handler.class" = "yarn.nodemanager.linux-container-executor.resources-handler.class" =
"org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler"; "org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler";