about summary refs log tree commit diff
path: root/nixos/modules/services/cluster
diff options
context:
space:
mode:
authorillustris <rharikrishnan95@gmail.com>2023-03-02 15:03:10 +0530
committerillustris <rharikrishnan95@gmail.com>2023-03-02 15:03:10 +0530
commit653d1f053463b85525e02afb7ee91b4b26d966e1 (patch)
treeba29c0a7079f14adcc6ffa515575d1081460b13a /nixos/modules/services/cluster
parent1035e52191efcc629ff676d1d8db20879b4ce629 (diff)
downloadnixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.tar
nixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.tar.gz
nixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.tar.bz2
nixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.tar.lz
nixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.tar.xz
nixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.tar.zst
nixlib-653d1f053463b85525e02afb7ee91b4b26d966e1.zip
nixos/hbase: add examples for options
Diffstat (limited to 'nixos/modules/services/cluster')
-rw-r--r--nixos/modules/services/cluster/hadoop/hbase.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/cluster/hadoop/hbase.nix b/nixos/modules/services/cluster/hadoop/hbase.nix
index 51f11817bacf..a39da2a84eca 100644
--- a/nixos/modules/services/cluster/hadoop/hbase.nix
+++ b/nixos/modules/services/cluster/hadoop/hbase.nix
@@ -24,12 +24,18 @@ let
     extraFlags = mkOption {
       type = with types; listOf str;
       default = [];
+      example = literalExpression ''[ "--backup" ]'';
       description = mdDoc "Extra flags for the ${name} service.";
     };
 
     environment = mkOption {
       type = with types; attrsOf str;
       default = {};
+      example = literalExpression ''
+        {
+          HBASE_MASTER_OPTS = "-Dcom.sun.management.jmxremote.ssl=true";
+        }
+      '';
       description = mdDoc "Environment variables passed to ${name}.";
     };
   } // extraOpts;
@@ -107,6 +113,10 @@ in
       default = {};
       type = with types; attrsOf anything;
       example = literalExpression ''
+        {
+          "hbase.hregion.max.filesize" = 20*1024*1024*1024;
+          "hbase.table.normalization.enabled" = "true";
+        }
       '';
       description = mdDoc ''
         Additional options and overrides for hbase-site.xml