diff options
author | illustris <rharikrishnan95@gmail.com> | 2022-01-26 14:36:08 +0530 |
---|---|---|
committer | illustris <rharikrishnan95@gmail.com> | 2022-03-11 14:18:44 +0530 |
commit | 2130653ae2b9e3e090127055cebf3ed09f2724e8 (patch) | |
tree | 3675003ff2a22cb66ab117d2f655dd6f938c94e6 /pkgs/applications/networking/cluster/hadoop | |
parent | cc19b949af25b9d4db80a62fd445ff1987cc8241 (diff) |
hadoop: Add support for linux container executor in versions < 3.3
Diffstat (limited to 'pkgs/applications/networking/cluster/hadoop')
-rw-r--r-- | pkgs/applications/networking/cluster/hadoop/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/applications/networking/cluster/hadoop/default.nix b/pkgs/applications/networking/cluster/hadoop/default.nix index 204cb9abecf75..adb46540cba7d 100644 --- a/pkgs/applications/networking/cluster/hadoop/default.nix +++ b/pkgs/applications/networking/cluster/hadoop/default.nix @@ -15,7 +15,7 @@ , zlib , zstd , openssl -, openssl +, glibc , nixosTests }: @@ -40,7 +40,10 @@ let installPhase = '' mkdir -p $out/{lib/${untarDir}/conf,bin,lib} mv * $out/lib/${untarDir} - + '' + optionalString stdenv.isLinux '' + # All versions need container-executor, but some versions can't use autoPatchelf because of broken SSL versions + patchelf --set-interpreter ${glibc.out}/lib64/ld-linux-x86-64.so.2 $out/lib/${untarDir}/bin/container-executor + '' + '' for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do makeWrapper "$n" "$out/bin/$(basename $n)"\ --set-default JAVA_HOME ${jdk.home}\ @@ -112,15 +115,13 @@ in jdk = jdk8_headless; # not using native libs because of broken openssl_1_0_2 dependency # can be manually overriden - # Disable tests involving HDFS till the module adds support for hadoop_3_2 - tests = nixosTests.hadoop_3_2 // { all = null; hdfs = null; }; + tests = nixosTests.hadoop_3_2; }; hadoop2 = common rec { pname = "hadoop"; version = "2.10.1"; sha256.x86_64-linux = "1w31x4bk9f2swnx8qxx0cgwfg8vbpm6cy5lvfnbbpl3rsjhmyg97"; jdk = jdk8_headless; - # Disable tests involving HDFS till the module adds support for hadoop2 - tests = nixosTests.hadoop2 // { all = null; hdfs = null; }; + tests = nixosTests.hadoop2; }; } |