nixos/hadoop: fix lib function calls
This commit is contained in:
parent
79439eadd8
commit
61dd3fdae2
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user