nixos/hadoop: fix, hadoop: 3.4.0 -> 3.4.1 (#364992)
This commit is contained in:
@@ -188,22 +188,30 @@ 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 {
|
||||
"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";
|
||||
"yarn.nodemanager.linux-container-executor.cgroups.mount" = "true";
|
||||
"yarn.nodemanager.linux-container-executor.cgroups.mount-path" =
|
||||
"/run/wrappers/yarn-nodemanager/cgroup";
|
||||
})
|
||||
(lib.mkIf useCGroups (
|
||||
lib.warnIf (lib.versionOlder cfg.package.version "3.5.0")
|
||||
''
|
||||
hadoop < 3.5.0 does not support cgroup v2
|
||||
setting `services.hadoop.yarn.nodemanager.useCGroups = false` is recommended
|
||||
see: https://issues.apache.org/jira/browse/YARN-11669
|
||||
''
|
||||
{
|
||||
"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";
|
||||
"yarn.nodemanager.linux-container-executor.cgroups.mount" = "true";
|
||||
"yarn.nodemanager.linux-container-executor.cgroups.mount-path" =
|
||||
"/run/wrappers/yarn-nodemanager/cgroup";
|
||||
}
|
||||
))
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
|
||||
Reference in New Issue
Block a user