From 61dd3fdae2528e2344f4c3a675883af0b5e547f7 Mon Sep 17 00:00:00 2001 From: illustris Date: Fri, 13 Dec 2024 21:19:06 +0530 Subject: [PATCH] nixos/hadoop: fix lib function calls --- nixos/modules/services/cluster/hadoop/yarn.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/cluster/hadoop/yarn.nix b/nixos/modules/services/cluster/hadoop/yarn.nix index 7c0bc8e972d9..cae6d9c1ad4f 100644 --- a/nixos/modules/services/cluster/hadoop/yarn.nix +++ b/nixos/modules/services/cluster/hadoop/yarn.nix @@ -188,15 +188,15 @@ in services.hadoop.yarnSiteInternal = 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-mb" = resource.maximumAllocationMB; "yarn.nodemanager.resource.cpu-vcores" = resource.cpuVCores; "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.resources-handler.class" = "org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler";