1 import ./make-test-python.nix ({ pkgs, lib, package ? pkgs.hbase, ... }:
3 name = "hbase-standalone";
5 meta = with lib.maintainers; {
6 maintainers = [ illustris ];
10 hbase = { pkgs, ... }: {
11 services.hbase-standalone = {
14 # Needed for standalone mode in hbase 2+
15 # This setting and standalone mode are not suitable for production
16 settings."hbase.unsafe.stream.capability.enforce" = "false";
18 environment.systemPackages = with pkgs; [
26 hbase.wait_for_unit("hbase.service")
27 hbase.wait_until_succeeds("echo \"create 't1','f1'\" | sudo -u hbase hbase shell -n")
28 assert "NAME => 'f1'" in hbase.succeed("echo \"describe 't1'\" | sudo -u hbase hbase shell -n")