2023-09-23 19:05:22 +00:00
|
|
|
{ version, stdenv, fetchurl, lib, cmake, openssl, platformAttrs, ... }:
|
2023-09-21 07:31:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hadoop-yarn-containerexecutor";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-21 03:07:13 +00:00
|
|
|
url = "mirror://apache/hadoop/common/hadoop-${finalAttrs.version}/hadoop-${finalAttrs.version}-src.tar.gz";
|
2023-09-23 19:05:22 +00:00
|
|
|
hash = platformAttrs.${stdenv.system}.srcHash;
|
2023-09-21 07:31:19 +00:00
|
|
|
};
|
|
|
|
sourceRoot = "hadoop-${finalAttrs.version}-src/hadoop-yarn-project/hadoop-yarn/"
|
|
|
|
+"hadoop-yarn-server/hadoop-yarn-server-nodemanager/src";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
cmakeFlags = [ "-DHADOOP_CONF_DIR=/run/wrappers/yarn-nodemanager/etc/hadoop" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
mv target/var/empty/local/bin $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://hadoop.apache.org/";
|
|
|
|
description = "Framework for distributed processing of large data sets across clusters of computers";
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The Hadoop YARN Container Executor is a native component responsible for managing the lifecycle of containers
|
|
|
|
on individual nodes in a Hadoop YARN cluster. It launches, monitors, and terminates containers, ensuring that
|
|
|
|
resources like CPU and memory are allocated according to the policies defined in the ResourceManager.
|
|
|
|
'';
|
|
|
|
|
|
|
|
maintainers = with maintainers; [ illustris ];
|
2023-10-09 13:19:06 +00:00
|
|
|
platforms = filter (strings.hasSuffix "linux") (attrNames platformAttrs);
|
2023-09-21 07:31:19 +00:00
|
|
|
};
|
|
|
|
})
|