From e761e8a9798f6f40a3b12682cc88d16097d2e6e0 Mon Sep 17 00:00:00 2001 From: illustris Date: Mon, 24 Jun 2024 09:25:57 +0530 Subject: [PATCH] hadoop: init 3.4, drop 3.2 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/hadoop/hadoop.nix | 1 + .../networking/cluster/hadoop/default.nix | 30 ++++++++++++------- pkgs/top-level/all-packages.nix | 4 +-- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index b1f7d1917ed4..1c7b35da8f26 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -390,7 +390,7 @@ in { guix = handleTest ./guix {}; gvisor = handleTest ./gvisor.nix {}; hadoop = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop; }; - hadoop_3_2 = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop_3_2; }; + hadoop_3_3 = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop_3_3; }; hadoop2 = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop2; }; haka = handleTest ./haka.nix {}; haste-server = handleTest ./haste-server.nix {}; diff --git a/nixos/tests/hadoop/hadoop.nix b/nixos/tests/hadoop/hadoop.nix index 6162ccfd33d4..cc631bb46810 100644 --- a/nixos/tests/hadoop/hadoop.nix +++ b/nixos/tests/hadoop/hadoop.nix @@ -99,6 +99,7 @@ import ../make-test-python.nix ({ package, ... }: { }; dn1 = { ... }: { + virtualisation.diskSize = 4096; services.hadoop = { inherit package coreSite hdfsSite; hdfs.datanode = { diff --git a/pkgs/applications/networking/cluster/hadoop/default.nix b/pkgs/applications/networking/cluster/hadoop/default.nix index 5f44e39d008c..e02525e48f0a 100644 --- a/pkgs/applications/networking/cluster/hadoop/default.nix +++ b/pkgs/applications/networking/cluster/hadoop/default.nix @@ -125,6 +125,24 @@ in { # Different version of hadoop support different java runtime versions # https://cwiki.apache.org/confluence/display/HADOOP/Hadoop+Java+Versions + hadoop_3_4 = common rec { + pname = "hadoop"; + platformAttrs = rec { + x86_64-linux = { + version = "3.4.0"; + hash = "sha256-4xGnhIBBQDD57GNUml1oXmnibyBxA9mr8hpIud0DyGw="; + srcHash = "sha256-viDF3LdRCZHqFycOYfN7nUQBPHiMCIjmu7jgIAaaK9E="; + }; + x86_64-darwin = x86_64-linux; + aarch64-linux = x86_64-linux // { + hash = "sha256-QWxzKtNyw/AzcHMv0v7kj91pw1HO7VAN9MHO84caFk8="; + }; + aarch64-darwin = aarch64-linux; + }; + jdk = jdk11_headless; + # TODO: Package and add Intel Storage Acceleration Library + tests = nixosTests.hadoop; + }; hadoop_3_3 = common rec { pname = "hadoop"; platformAttrs = rec { @@ -141,17 +159,7 @@ in }; jdk = jdk11_headless; # TODO: Package and add Intel Storage Acceleration Library - tests = nixosTests.hadoop; - }; - hadoop_3_2 = common { - pname = "hadoop"; - platformAttrs.x86_64-linux = { - version = "3.2.4"; - hash = "sha256-qt2gpMr+NHuiVR+/zFRzRyRKG725/ZNBIM69z9J9wNw="; - srcHash = "sha256-F9nGD3mZZ1eJf3Ec3AJGE9YBcL/HiagskcdKQhCn/sw="; - }; - jdk = jdk8_headless; - tests = nixosTests.hadoop_3_2; + tests = nixosTests.hadoop_3_3; }; hadoop2 = common rec { pname = "hadoop"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ae15165165ff..adb26d3e0319 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17128,10 +17128,10 @@ with pkgs; groovy = callPackage ../development/interpreters/groovy { }; inherit (callPackages ../applications/networking/cluster/hadoop {}) + hadoop_3_4 hadoop_3_3 - hadoop_3_2 hadoop2; - hadoop3 = hadoop_3_3; + hadoop3 = hadoop_3_4; hadoop = hadoop3; hashlink = callPackage ../development/interpreters/hashlink { };