1 # This only tests if YARN is able to start its services
2 import ../make-test-python.nix ({ package, ... }: {
6 resourcemanager = { ... }: {
9 yarn.resourcemanager = {
15 nodemanager = { options, lib, ... }: {
23 "yarn.resourcemanager.hostname" = "resourcemanager";
24 "yarn.nodemanager.log-dirs" = "/tmp/userlogs";
33 resourcemanager.wait_for_unit("yarn-resourcemanager")
34 resourcemanager.wait_for_unit("network.target")
35 resourcemanager.wait_for_open_port(8031)
36 resourcemanager.wait_for_open_port(8088)
38 nodemanager.wait_for_unit("yarn-nodemanager")
39 nodemanager.wait_for_unit("network.target")
40 nodemanager.wait_for_open_port(8042)
42 resourcemanager.succeed("curl -f http://localhost:8088")
43 nodemanager.succeed("curl -f http://localhost:8042")