+73
-3
nixos/modules/services/cluster/hadoop/hdfs.nix
+73
-3
nixos/modules/services/cluster/hadoop/hdfs.nix
···············
···+Format HDFS namenode on first start. This is useful for quickly spinning up ephemeral HDFS clusters with a single namenode.+For HA clusters, initialization involves multiple steps across multiple nodes. Follow [this guide](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html)············+cfg.hdfs.namenode.enabled || cfg.hdfs.datanode.enabled || cfg.hdfs.journalnode.enabled || cfg.hdfs.zkfc.enabled
+1
nixos/modules/services/cluster/hadoop/yarn.nix
+1
nixos/modules/services/cluster/hadoop/yarn.nix
+198
-38
nixos/tests/hadoop/hadoop.nix
+198
-38
nixos/tests/hadoop/hadoop.nix
···-assert "Estimated value of Pi is" in worker.succeed("HADOOP_USER_NAME=hdfs yarn jar $(readlink $(which yarn) | sed -r 's~bin/yarn~lib/hadoop-*/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar~g') pi 2 10")
···+# This test is very comprehensive. It tests whether all hadoop services work well with each other.+"dfs.client.failover.proxy.provider.ns1" = "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider";+# yarn.resourcemanager.webapp.address needs to be defined even though yarn.resourcemanager.hostname is set. This shouldn't be necessary, but there's a bug in+# hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java:70+assert "Estimated value of Pi is" in nm1.succeed("HADOOP_USER_NAME=hdfs yarn jar $(readlink $(which yarn) | sed -r 's~bin/yarn~lib/hadoop-*/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar~g') pi 2 10")
+9
-10
nixos/tests/hadoop/hdfs.nix
+9
-10
nixos/tests/hadoop/hdfs.nix
············
············
+1
-10
nixos/tests/hadoop/yarn.nix
+1
-10
nixos/tests/hadoop/yarn.nix
······"yarn.resourcemanager.scheduler.class" = "org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler";······
······"yarn.resourcemanager.scheduler.class" = "org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler";······