Merge pull request #111153 from helsinki-systems/hadoop
nixos/hadoop: add types
This commit is contained in:
commit
7c5064e14a
@ -7,6 +7,7 @@ with lib;
|
|||||||
options.services.hadoop = {
|
options.services.hadoop = {
|
||||||
coreSite = mkOption {
|
coreSite = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
type = types.attrsOf types.anything;
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{
|
{
|
||||||
"fs.defaultFS" = "hdfs://localhost";
|
"fs.defaultFS" = "hdfs://localhost";
|
||||||
@ -17,6 +18,7 @@ with lib;
|
|||||||
|
|
||||||
hdfsSite = mkOption {
|
hdfsSite = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
type = types.attrsOf types.anything;
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{
|
{
|
||||||
"dfs.nameservices" = "namenode1";
|
"dfs.nameservices" = "namenode1";
|
||||||
@ -27,6 +29,7 @@ with lib;
|
|||||||
|
|
||||||
mapredSite = mkOption {
|
mapredSite = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
type = types.attrsOf types.anything;
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{
|
{
|
||||||
"mapreduce.map.cpu.vcores" = "1";
|
"mapreduce.map.cpu.vcores" = "1";
|
||||||
@ -37,6 +40,7 @@ with lib;
|
|||||||
|
|
||||||
yarnSite = mkOption {
|
yarnSite = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
type = types.attrsOf types.anything;
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{
|
{
|
||||||
"yarn.resourcemanager.ha.id" = "resourcemanager1";
|
"yarn.resourcemanager.ha.id" = "resourcemanager1";
|
||||||
|
Loading…
Reference in New Issue
Block a user