1 # This only tests if YARN is able to start its services
2 import ../make-test-python.nix (
13 yarn.resourcemanager = {
20 { options, lib, ... }:
30 "yarn.resourcemanager.hostname" = "resourcemanager";
31 "yarn.nodemanager.log-dirs" = "/tmp/userlogs";
40 resourcemanager.wait_for_unit("yarn-resourcemanager")
41 resourcemanager.wait_for_unit("network.target")
42 resourcemanager.wait_for_open_port(8031)
43 resourcemanager.wait_for_open_port(8088)
45 nodemanager.wait_for_unit("yarn-nodemanager")
46 nodemanager.wait_for_unit("network.target")
47 nodemanager.wait_for_open_port(8042)
49 resourcemanager.succeed("curl -f http://localhost:8088")
50 nodemanager.succeed("curl -f http://localhost:8042")