2022-03-28 22:19:17 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, jdk8_headless
|
|
|
|
, jdk11_headless
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2015-07-22 10:10:03 +02:00
|
|
|
|
2022-03-28 22:19:17 +02:00
|
|
|
let common = { version, hash, jdk ? jdk11_headless, tests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hbase";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/hbase/${version}/hbase-${version}-bin.tar.gz";
|
|
|
|
inherit hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -R * $out
|
2022-05-07 14:10:58 +02:00
|
|
|
wrapProgram $out/bin/hbase --set-default JAVA_HOME ${jdk.home} \
|
|
|
|
--run "test -d /etc/hadoop-conf && export HBASE_CONF_DIR=\''${HBASE_CONF_DIR-'/etc/hadoop-conf/'}" \
|
|
|
|
--set-default HBASE_CONF_DIR "$out/conf/"
|
2022-03-28 22:19:17 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = { inherit tests; };
|
2015-07-22 10:10:03 +02:00
|
|
|
|
2022-03-28 22:19:17 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A distributed, scalable, big data store";
|
|
|
|
homepage = "https://hbase.apache.org";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ illustris ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
hbase_2_4 = common {
|
2023-05-22 01:35:46 +02:00
|
|
|
version = "2.4.17";
|
|
|
|
hash = "sha256-1JT57kpp+dqoXY5ZZig1nHDtSqvfLjEWviu73J7hKj0=";
|
2022-09-30 18:43:14 +02:00
|
|
|
tests.standalone = nixosTests.hbase_2_4;
|
|
|
|
};
|
|
|
|
hbase_2_5 = common {
|
2023-05-22 01:35:46 +02:00
|
|
|
version = "2.5.4";
|
|
|
|
hash = "sha256-/7kp0f/K8DCeFheDPzs2ZFqcnZwQtH1rrMx+UMbQ7TM=";
|
2022-03-28 22:19:17 +02:00
|
|
|
tests.standalone = nixosTests.hbase2;
|
|
|
|
};
|
|
|
|
hbase_3_0 = common {
|
2022-09-30 18:43:14 +02:00
|
|
|
version = "3.0.0-alpha-3";
|
|
|
|
hash = "sha256-TxuiUHc2pTb9nBth1H2XrDRLla2vqM+e1uBU+yY2/EM=";
|
2022-03-28 22:19:17 +02:00
|
|
|
tests.standalone = nixosTests.hbase3;
|
2014-11-21 15:43:12 +01:00
|
|
|
};
|
2014-11-20 12:29:07 +01:00
|
|
|
}
|