@@ -7,33 +7,41 @@ with lib;
77 options.services.hadoop = {
88 coreSite = mkOption {
99 default = {};
10− example = {
11− "fs.defaultFS" = "hdfs://localhost";
12− };
10+ example = literalExample ''
11+ {
12+ "fs.defaultFS" = "hdfs://localhost";
13+ }
14+ '';
1315 description = "Hadoop core-site.xml definition";
1416 };
1517
1618 hdfsSite = mkOption {
1719 default = {};
18− example = {
19− "dfs.nameservices" = "namenode1";
20− };
20+ example = literalExample ''
21+ {
22+ "dfs.nameservices" = "namenode1";
23+ }
24+ '';
2125 description = "Hadoop hdfs-site.xml definition";
2226 };
2327
2428 mapredSite = mkOption {
2529 default = {};
26− example = {
27− "mapreduce.map.cpu.vcores" = "1";
28− };
30+ example = literalExample ''
31+ {
32+ "mapreduce.map.cpu.vcores" = "1";
33+ }
34+ '';
2935 description = "Hadoop mapred-site.xml definition";
3036 };
3137
3238 yarnSite = mkOption {
3339 default = {};
34− example = {
35− "yarn.resourcemanager.ha.id" = "resourcemanager1";
36− };
40+ example = literalExample ''
41+ {
42+ "yarn.resourcemanager.ha.id" = "resourcemanager1";
43+ }
44+ '';
3745 description = "Hadoop yarn-site.xml definition";
3846 };
3947