---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (2, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (4, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (4, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (4, 16),
        },
        Raw {
         content: "hadoop",
         position: (4, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "hadoopConf",
        position: (7, 3),
       },
      ],
     },
     to: String {
      parts: [
       Expression {
        expression: FunctionApplication {
         function: Variable {
          identifier: "import",
          position: (7, 19),
         },
         arguments: [
          Path {
           parts: [
            Raw {
             content: "./conf.nix",
             position: (7, 26),
            },
           ],
           position: (7, 26),
          },
          Map {
           bindings: [
            Inherit {
             from: None,
             attributes: [
              Raw {
               content: "cfg",
               position: (7, 47),
              },
              Raw {
               content: "pkgs",
               position: (7, 51),
              },
              Raw {
               content: "lib",
               position: (7, 56),
              },
             ],
            },
           ],
           recursive: false,
           position: (7, 37),
          },
         ],
        },
       },
       Raw {
        content: "/",
        position: (7, 63),
       },
      ],
      position: (7, 16),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "hadoopServiceOption",
        position: (10, 3),
       },
      ],
     },
     to: Function {
      argument: Destructured {
       identifier: None,
       arguments: [
        DestructuredArgument {
         identifier: "serviceName",
         default: None,
        },
        DestructuredArgument {
         identifier: "firewallOption",
         default: Some(
          Variable {
           identifier: "true",
           position: (10, 57),
          },
         ),
        },
        DestructuredArgument {
         identifier: "extraOpts",
         default: Some(
          Variable {
           identifier: "null",
           position: (10, 75),
          },
         ),
        },
       ],
       ellipsis: false,
      },
      definition: BinaryOperation {
       operator: Update,
       operands: [
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "enable",
              position: (11, 5),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkEnableOption",
             position: (11, 14),
            },
            arguments: [
             Variable {
              identifier: "serviceName",
              position: (11, 29),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "restartIfChanged",
              position: (12, 5),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (12, 24),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (13, 7),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (13, 14),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "bool",
                    position: (13, 20),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (14, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Automatically restart the service on config change.\nThis can be set to false to defer restarts on clusters running critical applications.\nPlease consider the security implications of inadvertently running an older version,\nand the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.\n",
                   position: (15, 1),
                  },
                 ],
                 position: (14, 21),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (20, 7),
                  },
                 ],
                },
                to: Variable {
                 identifier: "false",
                 position: (20, 17),
                },
               },
              ],
              recursive: false,
              position: (12, 33),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "extraFlags",
              position: (22, 5),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (22, 18),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (23, 7),
                  },
                 ],
                },
                to: With {
                 expression: Variable {
                  identifier: "types",
                  position: (23, 19),
                 },
                 target: FunctionApplication {
                  function: Variable {
                   identifier: "listOf",
                   position: (23, 26),
                  },
                  arguments: [
                   Variable {
                    identifier: "str",
                    position: (23, 33),
                   },
                  ],
                 },
                 position: (23, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (24, 7),
                  },
                 ],
                },
                to: List {
                 elements: [],
                 position: (24, 17),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (25, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Extra command line flags to pass to ",
                   position: (25, 22),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "serviceName",
                    position: (25, 60),
                   },
                  },
                 ],
                 position: (25, 21),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "example",
                   position: (26, 7),
                  },
                 ],
                },
                to: List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "-Dcom.sun.management.jmxremote",
                     position: (27, 10),
                    },
                   ],
                   position: (27, 9),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "-Dcom.sun.management.jmxremote.port=8010",
                     position: (28, 10),
                    },
                   ],
                   position: (28, 9),
                  },
                 ],
                 position: (26, 17),
                },
               },
              ],
              recursive: false,
              position: (22, 26),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "extraEnv",
              position: (31, 5),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (31, 16),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (32, 7),
                  },
                 ],
                },
                to: With {
                 expression: Variable {
                  identifier: "types",
                  position: (32, 19),
                 },
                 target: FunctionApplication {
                  function: Variable {
                   identifier: "attrsOf",
                   position: (32, 26),
                  },
                  arguments: [
                   Variable {
                    identifier: "str",
                    position: (32, 34),
                   },
                  ],
                 },
                 position: (32, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (33, 7),
                  },
                 ],
                },
                to: Map {
                 bindings: [],
                 recursive: false,
                 position: (33, 17),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (34, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Extra environment variables for ",
                   position: (34, 22),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "serviceName",
                    position: (34, 56),
                   },
                  },
                 ],
                 position: (34, 21),
                },
               },
              ],
              recursive: false,
              position: (31, 24),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (10, 83),
        },
        BinaryOperation {
         operator: Update,
         operands: [
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (36, 9),
            },
            arguments: [
             Variable {
              identifier: "firewallOption",
              position: (36, 23),
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "openFirewall",
                   position: (37, 5),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: Variable {
                  identifier: "mkOption",
                  position: (37, 20),
                 },
                 arguments: [
                  Map {
                   bindings: [
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "type",
                        position: (38, 7),
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (38, 14),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "bool",
                         position: (38, 20),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "default",
                        position: (39, 7),
                       },
                      ],
                     },
                     to: Variable {
                      identifier: "false",
                      position: (39, 17),
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "description",
                        position: (40, 7),
                       },
                      ],
                     },
                     to: String {
                      parts: [
                       Raw {
                        content: "Open firewall ports for ",
                        position: (40, 22),
                       },
                       Expression {
                        expression: Variable {
                         identifier: "serviceName",
                         position: (40, 48),
                        },
                       },
                       Raw {
                        content: ".",
                        position: (40, 60),
                       },
                      ],
                      position: (40, 21),
                     },
                    },
                   ],
                   recursive: false,
                   position: (37, 29),
                  },
                 ],
                },
               },
              ],
              recursive: false,
              position: (36, 38),
             },
            ],
           },
           position: (36, 8),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (42, 10),
            },
            arguments: [
             Parentheses {
              expression: BinaryOperation {
               operator: NotEqualTo,
               operands: [
                Variable {
                 identifier: "extraOpts",
                 position: (42, 25),
                },
                Variable {
                 identifier: "null",
                 position: (42, 38),
                },
               ],
               position: (42, 35),
              },
              position: (42, 24),
             },
             Variable {
              identifier: "extraOpts",
              position: (42, 44),
             },
            ],
           },
           position: (42, 9),
          },
         ],
         position: (42, 6),
        },
       ],
       position: (36, 5),
      },
      position: (10, 25),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "hadoopServiceConfig",
        position: (45, 3),
       },
      ],
     },
     to: Function {
      argument: Destructured {
       identifier: None,
       arguments: [
        DestructuredArgument {
         identifier: "name",
         default: None,
        },
        DestructuredArgument {
         identifier: "serviceOptions",
         default: Some(
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (47, 24),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "hdfs",
              position: (47, 28),
             },
             Expression {
              expression: String {
               parts: [
                Expression {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "toLower",
                   position: (47, 36),
                  },
                  arguments: [
                   Variable {
                    identifier: "name",
                    position: (47, 44),
                   },
                  ],
                 },
                },
               ],
               position: (47, 33),
              },
             },
            ],
           },
           default: None,
          },
         ),
        },
        DestructuredArgument {
         identifier: "description",
         default: Some(
          String {
           parts: [
            Raw {
             content: "Hadoop HDFS ",
             position: (48, 22),
            },
            Expression {
             expression: Variable {
              identifier: "name",
              position: (48, 36),
             },
            },
           ],
           position: (48, 21),
          },
         ),
        },
        DestructuredArgument {
         identifier: "User",
         default: Some(
          String {
           parts: [
            Raw {
             content: "hdfs",
             position: (49, 15),
            },
           ],
           position: (49, 14),
          },
         ),
        },
        DestructuredArgument {
         identifier: "allowedTCPPorts",
         default: Some(
          List {
           elements: [],
           position: (50, 25),
          },
         ),
        },
        DestructuredArgument {
         identifier: "preStart",
         default: Some(
          String {
           parts: [],
           position: (51, 18),
          },
         ),
        },
        DestructuredArgument {
         identifier: "environment",
         default: Some(
          Map {
           bindings: [],
           recursive: false,
           position: (52, 21),
          },
         ),
        },
        DestructuredArgument {
         identifier: "extraConfig",
         default: Some(
          Map {
           bindings: [],
           recursive: false,
           position: (53, 21),
          },
         ),
        },
       ],
       ellipsis: false,
      },
      definition: Parentheses {
       expression: FunctionApplication {
        function: Variable {
         identifier: "mkIf",
         position: (56, 7),
        },
        arguments: [
         PropertyAccess {
          expression: Variable {
           identifier: "serviceOptions",
           position: (56, 12),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "enable",
             position: (56, 27),
            },
           ],
          },
          default: None,
         },
         Parentheses {
          expression: FunctionApplication {
           function: Variable {
            identifier: "mkMerge",
            position: (56, 36),
           },
           arguments: [
            List {
             elements: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "systemd",
                    position: (57, 9),
                   },
                   Raw {
                    content: "services",
                    position: (57, 17),
                   },
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "hdfs-",
                       position: (57, 27),
                      },
                      Expression {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "toLower",
                         position: (57, 34),
                        },
                        arguments: [
                         Variable {
                          identifier: "name",
                          position: (57, 42),
                         },
                        ],
                       },
                      },
                     ],
                     position: (57, 26),
                    },
                   },
                  ],
                 },
                 to: Map {
                  bindings: [
                   Inherit {
                    from: None,
                    attributes: [
                     Raw {
                      content: "description",
                      position: (58, 19),
                     },
                     Raw {
                      content: "preStart",
                      position: (58, 31),
                     },
                    ],
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "environment",
                       position: (59, 11),
                      },
                     ],
                    },
                    to: BinaryOperation {
                     operator: Update,
                     operands: [
                      Variable {
                       identifier: "environment",
                       position: (59, 25),
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "serviceOptions",
                        position: (59, 40),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "extraEnv",
                          position: (59, 55),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (59, 37),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "wantedBy",
                       position: (60, 11),
                      },
                     ],
                    },
                    to: List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "multi-user.target",
                         position: (60, 25),
                        },
                       ],
                       position: (60, 24),
                      },
                     ],
                     position: (60, 22),
                    },
                   },
                   Inherit {
                    from: Some(
                     Variable {
                      identifier: "serviceOptions",
                      position: (61, 20),
                     },
                    ),
                    attributes: [
                     Raw {
                      content: "restartIfChanged",
                      position: (61, 36),
                     },
                    ],
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "serviceConfig",
                       position: (62, 11),
                      },
                     ],
                    },
                    to: Map {
                     bindings: [
                      Inherit {
                       from: None,
                       attributes: [
                        Raw {
                         content: "User",
                         position: (63, 21),
                        },
                       ],
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "SyslogIdentifier",
                          position: (64, 13),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "hdfs-",
                          position: (64, 33),
                         },
                         Expression {
                          expression: FunctionApplication {
                           function: Variable {
                            identifier: "toLower",
                            position: (64, 40),
                           },
                           arguments: [
                            Variable {
                             identifier: "name",
                             position: (64, 48),
                            },
                           ],
                          },
                         },
                        ],
                        position: (64, 32),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "ExecStart",
                          position: (65, 13),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Expression {
                          expression: PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (65, 28),
                           },
                           attribute_path: AttributePath {
                            parts: [
                             Raw {
                              content: "package",
                              position: (65, 32),
                             },
                            ],
                           },
                           default: None,
                          },
                         },
                         Raw {
                          content: "/bin/hdfs --config ",
                          position: (65, 40),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "hadoopConf",
                           position: (65, 61),
                          },
                         },
                         Raw {
                          content: " ",
                          position: (65, 72),
                         },
                         Expression {
                          expression: FunctionApplication {
                           function: Variable {
                            identifier: "toLower",
                            position: (65, 75),
                           },
                           arguments: [
                            Variable {
                             identifier: "name",
                             position: (65, 83),
                            },
                           ],
                          },
                         },
                         Raw {
                          content: " ",
                          position: (65, 88),
                         },
                         Expression {
                          expression: FunctionApplication {
                           function: Variable {
                            identifier: "escapeShellArgs",
                            position: (65, 91),
                           },
                           arguments: [
                            PropertyAccess {
                             expression: Variable {
                              identifier: "serviceOptions",
                              position: (65, 107),
                             },
                             attribute_path: AttributePath {
                              parts: [
                               Raw {
                                content: "extraFlags",
                                position: (65, 122),
                               },
                              ],
                             },
                             default: None,
                            },
                           ],
                          },
                         },
                        ],
                        position: (65, 25),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "Restart",
                          position: (66, 13),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "always",
                          position: (66, 24),
                         },
                        ],
                        position: (66, 23),
                       },
                      },
                     ],
                     recursive: false,
                     position: (62, 27),
                    },
                   },
                  ],
                  recursive: false,
                  position: (57, 51),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "services",
                    position: (70, 9),
                   },
                   Raw {
                    content: "hadoop",
                    position: (70, 18),
                   },
                   Raw {
                    content: "gatewayRole",
                    position: (70, 25),
                   },
                   Raw {
                    content: "enable",
                    position: (70, 37),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "true",
                  position: (70, 46),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "networking",
                    position: (72, 9),
                   },
                   Raw {
                    content: "firewall",
                    position: (72, 20),
                   },
                   Raw {
                    content: "allowedTCPPorts",
                    position: (72, 29),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (72, 47),
                  },
                  arguments: [
                   Parentheses {
                    expression: BinaryOperation {
                     operator: LogicalAnd,
                     operands: [
                      Parentheses {
                       expression: FunctionApplication {
                        function: PropertyAccess {
                         expression: Variable {
                          identifier: "builtins",
                          position: (73, 13),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "hasAttr",
                            position: (73, 22),
                           },
                          ],
                         },
                         default: None,
                        },
                        arguments: [
                         String {
                          parts: [
                           Raw {
                            content: "openFirewall",
                            position: (73, 31),
                           },
                          ],
                          position: (73, 30),
                         },
                         Variable {
                          identifier: "serviceOptions",
                          position: (73, 45),
                         },
                        ],
                       },
                       position: (73, 12),
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "serviceOptions",
                        position: (73, 64),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "openFirewall",
                          position: (73, 79),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (73, 61),
                    },
                    position: (73, 11),
                   },
                   Variable {
                    identifier: "allowedTCPPorts",
                    position: (74, 11),
                   },
                  ],
                 },
                },
               ],
               recursive: false,
               position: (56, 45),
              },
              Variable {
               identifier: "extraConfig",
               position: (75, 9),
              },
             ],
             position: (56, 44),
            },
           ],
          },
          position: (56, 34),
         },
        ],
       },
       position: (54, 8),
      },
      position: (46, 5),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (80, 3),
        },
        Raw {
         content: "services",
         position: (80, 11),
        },
        Raw {
         content: "hadoop",
         position: (80, 20),
        },
        Raw {
         content: "hdfs",
         position: (80, 27),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "namenode",
            position: (82, 5),
           },
          ],
         },
         to: BinaryOperation {
          operator: Update,
          operands: [
           FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceOption",
             position: (82, 16),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "serviceName",
                   position: (82, 38),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "HDFS NameNode",
                   position: (82, 53),
                  },
                 ],
                 position: (82, 52),
                },
               },
              ],
              recursive: false,
              position: (82, 36),
             },
            ],
           },
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "formatOnInit",
                 position: (83, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "mkOption",
                position: (83, 22),
               },
               arguments: [
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "type",
                      position: (84, 9),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (84, 16),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "bool",
                       position: (84, 22),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "default",
                      position: (85, 9),
                     },
                    ],
                   },
                   to: Variable {
                    identifier: "false",
                    position: (85, 19),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (86, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "Format HDFS namenode on first start. This is useful for quickly spinning up\nephemeral HDFS clusters with a single namenode.\nFor HA clusters, initialization involves multiple steps across multiple nodes.\nFollow this guide to initialize an HA cluster manually:\n<link xlink:href=\"https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html\"/>\n",
                      position: (87, 1),
                     },
                    ],
                    position: (86, 23),
                   },
                  },
                 ],
                 recursive: false,
                 position: (83, 31),
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (82, 74),
           },
          ],
          position: (82, 71),
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "datanode",
            position: (96, 5),
           },
          ],
         },
         to: BinaryOperation {
          operator: Update,
          operands: [
           FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceOption",
             position: (96, 16),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "serviceName",
                   position: (96, 38),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "HDFS DataNode",
                   position: (96, 53),
                  },
                 ],
                 position: (96, 52),
                },
               },
              ],
              recursive: false,
              position: (96, 36),
             },
            ],
           },
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "dataDirs",
                 position: (97, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "mkOption",
                position: (97, 18),
               },
               arguments: [
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "default",
                      position: (98, 9),
                     },
                    ],
                   },
                   to: Variable {
                    identifier: "null",
                    position: (98, 19),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (99, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "Tier and path definitions for datanode storage.",
                      position: (99, 24),
                     },
                    ],
                    position: (99, 23),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "type",
                      position: (100, 9),
                     },
                    ],
                   },
                   to: With {
                    expression: Variable {
                     identifier: "types",
                     position: (100, 21),
                    },
                    target: FunctionApplication {
                     function: Variable {
                      identifier: "nullOr",
                      position: (100, 28),
                     },
                     arguments: [
                      Parentheses {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "listOf",
                         position: (100, 36),
                        },
                        arguments: [
                         Parentheses {
                          expression: FunctionApplication {
                           function: Variable {
                            identifier: "submodule",
                            position: (100, 44),
                           },
                           arguments: [
                            Map {
                             bindings: [
                              Binding {
                               from: AttributePath {
                                parts: [
                                 Raw {
                                  content: "options",
                                  position: (101, 11),
                                 },
                                ],
                               },
                               to: Map {
                                bindings: [
                                 Binding {
                                  from: AttributePath {
                                   parts: [
                                    Raw {
                                     content: "type",
                                     position: (102, 13),
                                    },
                                   ],
                                  },
                                  to: FunctionApplication {
                                   function: Variable {
                                    identifier: "mkOption",
                                    position: (102, 20),
                                   },
                                   arguments: [
                                    Map {
                                     bindings: [
                                      Binding {
                                       from: AttributePath {
                                        parts: [
                                         Raw {
                                          content: "type",
                                          position: (103, 15),
                                         },
                                        ],
                                       },
                                       to: FunctionApplication {
                                        function: Variable {
                                         identifier: "enum",
                                         position: (103, 22),
                                        },
                                        arguments: [
                                         List {
                                          elements: [
                                           String {
                                            parts: [
                                             Raw {
                                              content: "SSD",
                                              position: (103, 30),
                                             },
                                            ],
                                            position: (103, 29),
                                           },
                                           String {
                                            parts: [
                                             Raw {
                                              content: "DISK",
                                              position: (103, 36),
                                             },
                                            ],
                                            position: (103, 35),
                                           },
                                           String {
                                            parts: [
                                             Raw {
                                              content: "ARCHIVE",
                                              position: (103, 43),
                                             },
                                            ],
                                            position: (103, 42),
                                           },
                                           String {
                                            parts: [
                                             Raw {
                                              content: "RAM_DISK",
                                              position: (103, 53),
                                             },
                                            ],
                                            position: (103, 52),
                                           },
                                          ],
                                          position: (103, 27),
                                         },
                                        ],
                                       },
                                      },
                                      Binding {
                                       from: AttributePath {
                                        parts: [
                                         Raw {
                                          content: "description",
                                          position: (104, 15),
                                         },
                                        ],
                                       },
                                       to: String {
                                        parts: [
                                         Raw {
                                          content: "Storage types ([SSD]/[DISK]/[ARCHIVE]/[RAM_DISK]) for HDFS storage policies.\n",
                                          position: (105, 1),
                                         },
                                        ],
                                        position: (104, 29),
                                       },
                                      },
                                     ],
                                     recursive: false,
                                     position: (102, 29),
                                    },
                                   ],
                                  },
                                 },
                                 Binding {
                                  from: AttributePath {
                                   parts: [
                                    Raw {
                                     content: "path",
                                     position: (108, 13),
                                    },
                                   ],
                                  },
                                  to: FunctionApplication {
                                   function: Variable {
                                    identifier: "mkOption",
                                    position: (108, 20),
                                   },
                                   arguments: [
                                    Map {
                                     bindings: [
                                      Binding {
                                       from: AttributePath {
                                        parts: [
                                         Raw {
                                          content: "type",
                                          position: (109, 15),
                                         },
                                        ],
                                       },
                                       to: Variable {
                                        identifier: "path",
                                        position: (109, 22),
                                       },
                                      },
                                      Binding {
                                       from: AttributePath {
                                        parts: [
                                         Raw {
                                          content: "example",
                                          position: (110, 15),
                                         },
                                        ],
                                       },
                                       to: List {
                                        elements: [
                                         String {
                                          parts: [
                                           Raw {
                                            content: "/var/lib/hadoop/hdfs/dn",
                                            position: (110, 28),
                                           },
                                          ],
                                          position: (110, 27),
                                         },
                                        ],
                                        position: (110, 25),
                                       },
                                      },
                                      Binding {
                                       from: AttributePath {
                                        parts: [
                                         Raw {
                                          content: "description",
                                          position: (111, 15),
                                         },
                                        ],
                                       },
                                       to: String {
                                        parts: [
                                         Raw {
                                          content: "Determines where on the local filesystem a data node should store its blocks.",
                                          position: (111, 30),
                                         },
                                        ],
                                        position: (111, 29),
                                       },
                                      },
                                     ],
                                     recursive: false,
                                     position: (108, 29),
                                    },
                                   ],
                                  },
                                 },
                                ],
                                recursive: false,
                                position: (101, 21),
                               },
                              },
                             ],
                             recursive: false,
                             position: (100, 54),
                            },
                           ],
                          },
                          position: (100, 43),
                         },
                        ],
                       },
                       position: (100, 35),
                      },
                     ],
                    },
                    position: (100, 16),
                   },
                  },
                 ],
                 recursive: false,
                 position: (97, 27),
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (96, 74),
           },
          ],
          position: (96, 71),
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "journalnode",
            position: (118, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "hadoopServiceOption",
           position: (118, 19),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceName",
                 position: (118, 41),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "HDFS JournalNode",
                 position: (118, 56),
                },
               ],
               position: (118, 55),
              },
             },
            ],
            recursive: false,
            position: (118, 39),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "zkfc",
            position: (120, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "hadoopServiceOption",
           position: (120, 12),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceName",
                 position: (121, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "HDFS ZooKeeper failover controller",
                 position: (121, 22),
                },
               ],
               position: (121, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "firewallOption",
                 position: (122, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (122, 24),
              },
             },
            ],
            recursive: false,
            position: (120, 32),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "httpfs",
            position: (125, 5),
           },
          ],
         },
         to: BinaryOperation {
          operator: Update,
          operands: [
           FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceOption",
             position: (125, 14),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "serviceName",
                   position: (125, 36),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "HDFS JournalNode",
                   position: (125, 51),
                  },
                 ],
                 position: (125, 50),
                },
               },
              ],
              recursive: false,
              position: (125, 34),
             },
            ],
           },
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "tempPath",
                 position: (126, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "mkOption",
                position: (126, 18),
               },
               arguments: [
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "type",
                      position: (127, 9),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (127, 16),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (127, 22),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "default",
                      position: (128, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "/tmp/hadoop/httpfs",
                      position: (128, 20),
                     },
                    ],
                    position: (128, 19),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (129, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "HTTPFS_TEMP path used by HTTPFS",
                      position: (129, 24),
                     },
                    ],
                    position: (129, 23),
                   },
                  },
                 ],
                 recursive: false,
                 position: (126, 27),
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (125, 75),
           },
          ],
          position: (125, 72),
         },
        },
       ],
       recursive: false,
       position: (80, 34),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (135, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkMerge",
        position: (135, 12),
       },
       arguments: [
        List {
         elements: [
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceConfig",
             position: (136, 6),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "name",
                   position: (137, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "NameNode",
                   position: (137, 15),
                  },
                 ],
                 position: (137, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (138, 7),
                  },
                 ],
                },
                to: List {
                 elements: [
                  Int {
                   value: 9870,
                   position: (139, 9),
                  },
                  Int {
                   value: 8020,
                   position: (140, 9),
                  },
                  Int {
                   value: 8022,
                   position: (141, 9),
                  },
                  Int {
                   value: 8019,
                   position: (142, 9),
                  },
                 ],
                 position: (138, 25),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "preStart",
                   position: (144, 7),
                  },
                 ],
                },
                to: Parentheses {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (144, 19),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (144, 24),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "hdfs",
                       position: (144, 28),
                      },
                      Raw {
                       content: "namenode",
                       position: (144, 33),
                      },
                      Raw {
                       content: "formatOnInit",
                       position: (144, 42),
                      },
                     ],
                    },
                    default: None,
                   },
                   String {
                    parts: [
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (145, 12),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "package",
                          position: (145, 16),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/hdfs --config ",
                      position: (145, 24),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "hadoopConf",
                       position: (145, 45),
                      },
                     },
                     Raw {
                      content: " namenode -format -nonInteractive || true",
                      position: (145, 56),
                     },
                    ],
                    position: (145, 9),
                   },
                  ],
                 },
                 position: (144, 18),
                },
               },
              ],
              recursive: false,
              position: (136, 26),
             },
            ],
           },
           position: (136, 5),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceConfig",
             position: (149, 6),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "name",
                   position: (150, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "DataNode",
                   position: (150, 15),
                  },
                 ],
                 position: (150, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (152, 7),
                  },
                 ],
                },
                to: IfThenElse {
                 predicate: FunctionApplication {
                  function: Variable {
                   identifier: "versionAtLeast",
                   position: (152, 28),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (152, 43),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "package",
                       position: (152, 47),
                      },
                      Raw {
                       content: "version",
                       position: (152, 55),
                      },
                     ],
                    },
                    default: None,
                   },
                   String {
                    parts: [
                     Raw {
                      content: "3",
                      position: (152, 64),
                     },
                    ],
                    position: (152, 63),
                   },
                  ],
                 },
                 then: List {
                  elements: [
                   Int {
                    value: 9864,
                    position: (153, 9),
                   },
                   Int {
                    value: 9866,
                    position: (154, 9),
                   },
                   Int {
                    value: 9867,
                    position: (155, 9),
                   },
                  ],
                  position: (152, 72),
                 },
                 else_: List {
                  elements: [
                   Int {
                    value: 50075,
                    position: (157, 9),
                   },
                   Int {
                    value: 50010,
                    position: (158, 9),
                   },
                   Int {
                    value: 50020,
                    position: (159, 9),
                   },
                  ],
                  position: (156, 14),
                 },
                 position: (152, 25),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "extraConfig",
                   position: (161, 7),
                  },
                  Raw {
                   content: "services",
                   position: (161, 19),
                  },
                  Raw {
                   content: "hadoop",
                   position: (161, 28),
                  },
                  Raw {
                   content: "hdfsSiteInternal",
                   position: (161, 35),
                  },
                  Expression {
                   expression: String {
                    parts: [
                     Raw {
                      content: "dfs.datanode.data.dir",
                      position: (161, 53),
                     },
                    ],
                    position: (161, 52),
                   },
                  },
                 ],
                },
                to: LetIn {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "d",
                      position: (161, 82),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (161, 86),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "hdfs",
                       position: (161, 90),
                      },
                      Raw {
                       content: "datanode",
                       position: (161, 95),
                      },
                      Raw {
                       content: "dataDirs",
                       position: (161, 104),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                 ],
                 target: IfThenElse {
                  predicate: Parentheses {
                   expression: BinaryOperation {
                    operator: NotEqualTo,
                    operands: [
                     Variable {
                      identifier: "d",
                      position: (162, 13),
                     },
                     Variable {
                      identifier: "null",
                      position: (162, 17),
                     },
                    ],
                    position: (162, 14),
                   },
                   position: (162, 12),
                  },
                  then: Parentheses {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "concatMapStringsSep",
                     position: (162, 29),
                    },
                    arguments: [
                     String {
                      parts: [
                       Raw {
                        content: ",",
                        position: (162, 50),
                       },
                      ],
                      position: (162, 49),
                     },
                     Parentheses {
                      expression: Function {
                       argument: Simple {
                        identifier: "x",
                       },
                       definition: BinaryOperation {
                        operator: Addition,
                        operands: [
                         BinaryOperation {
                          operator: Addition,
                          operands: [
                           BinaryOperation {
                            operator: Addition,
                            operands: [
                             String {
                              parts: [
                               Raw {
                                content: "[",
                                position: (162, 58),
                               },
                              ],
                              position: (162, 57),
                             },
                             PropertyAccess {
                              expression: Variable {
                               identifier: "x",
                               position: (162, 61),
                              },
                              attribute_path: AttributePath {
                               parts: [
                                Raw {
                                 content: "type",
                                 position: (162, 63),
                                },
                               ],
                              },
                              default: None,
                             },
                            ],
                            position: (162, 60),
                           },
                           String {
                            parts: [
                             Raw {
                              content: "]file://",
                              position: (162, 69),
                             },
                            ],
                            position: (162, 68),
                           },
                          ],
                          position: (162, 67),
                         },
                         PropertyAccess {
                          expression: Variable {
                           identifier: "x",
                           position: (162, 79),
                          },
                          attribute_path: AttributePath {
                           parts: [
                            Raw {
                             content: "path",
                             position: (162, 81),
                            },
                           ],
                          },
                          default: None,
                         },
                        ],
                        position: (162, 78),
                       },
                       position: (162, 54),
                      },
                      position: (162, 53),
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (162, 87),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "hdfs",
                         position: (162, 91),
                        },
                        Raw {
                         content: "datanode",
                         position: (162, 96),
                        },
                        Raw {
                         content: "dataDirs",
                         position: (162, 105),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                   position: (162, 28),
                  },
                  else_: Variable {
                   identifier: "d",
                   position: (162, 120),
                  },
                  position: (162, 9),
                 },
                 position: (161, 78),
                },
               },
              ],
              recursive: false,
              position: (149, 26),
             },
            ],
           },
           position: (149, 5),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceConfig",
             position: (165, 6),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "name",
                   position: (166, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "JournalNode",
                   position: (166, 15),
                  },
                 ],
                 position: (166, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (167, 7),
                  },
                 ],
                },
                to: List {
                 elements: [
                  Int {
                   value: 8480,
                   position: (168, 9),
                  },
                  Int {
                   value: 8485,
                   position: (169, 9),
                  },
                 ],
                 position: (167, 25),
                },
               },
              ],
              recursive: false,
              position: (165, 26),
             },
            ],
           },
           position: (165, 5),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceConfig",
             position: (173, 6),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "name",
                   position: (174, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "zkfc",
                   position: (174, 15),
                  },
                 ],
                 position: (174, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (175, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Hadoop HDFS ZooKeeper failover controller",
                   position: (175, 22),
                  },
                 ],
                 position: (175, 21),
                },
               },
              ],
              recursive: false,
              position: (173, 26),
             },
            ],
           },
           position: (173, 5),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "hadoopServiceConfig",
             position: (178, 6),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "name",
                   position: (179, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "HTTPFS",
                   position: (179, 15),
                  },
                 ],
                 position: (179, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "environment",
                   position: (180, 7),
                  },
                  Raw {
                   content: "HTTPFS_TEMP",
                   position: (180, 19),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (180, 33),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "hdfs",
                    position: (180, 37),
                   },
                   Raw {
                    content: "httpfs",
                    position: (180, 42),
                   },
                   Raw {
                    content: "tempPath",
                    position: (180, 49),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "preStart",
                   position: (181, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "mkdir -p $HTTPFS_TEMP",
                   position: (181, 19),
                  },
                 ],
                 position: (181, 18),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "User",
                   position: (182, 7),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "httpfs",
                   position: (182, 15),
                  },
                 ],
                 position: (182, 14),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (183, 7),
                  },
                 ],
                },
                to: List {
                 elements: [
                  Int {
                   value: 14000,
                   position: (184, 9),
                  },
                 ],
                 position: (183, 25),
                },
               },
              ],
              recursive: false,
              position: (178, 26),
             },
            ],
           },
           position: (178, 5),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (188, 6),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (188, 11),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "gatewayRole",
                 position: (188, 15),
                },
                Raw {
                 content: "enable",
                 position: (188, 27),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "users",
                   position: (189, 7),
                  },
                  Raw {
                   content: "users",
                   position: (189, 13),
                  },
                  Raw {
                   content: "hdfs",
                   position: (189, 19),
                  },
                 ],
                },
                to: Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (190, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "Hadoop HDFS user",
                      position: (190, 24),
                     },
                    ],
                    position: (190, 23),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "group",
                      position: (191, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "hadoop",
                      position: (191, 18),
                     },
                    ],
                    position: (191, 17),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "uid",
                      position: (192, 9),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (192, 15),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "ids",
                       position: (192, 22),
                      },
                      Raw {
                       content: "uids",
                       position: (192, 26),
                      },
                      Raw {
                       content: "hdfs",
                       position: (192, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                 ],
                 recursive: false,
                 position: (189, 26),
                },
               },
              ],
              recursive: false,
              position: (188, 34),
             },
            ],
           },
           position: (188, 5),
          },
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (195, 6),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (195, 11),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "hdfs",
                 position: (195, 15),
                },
                Raw {
                 content: "httpfs",
                 position: (195, 20),
                },
                Raw {
                 content: "enable",
                 position: (195, 27),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "users",
                   position: (196, 7),
                  },
                  Raw {
                   content: "users",
                   position: (196, 13),
                  },
                  Raw {
                   content: "httpfs",
                   position: (196, 19),
                  },
                 ],
                },
                to: Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (197, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "Hadoop HTTPFS user",
                      position: (197, 24),
                     },
                    ],
                    position: (197, 23),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "group",
                      position: (198, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "hadoop",
                      position: (198, 18),
                     },
                    ],
                    position: (198, 17),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "isSystemUser",
                      position: (199, 9),
                     },
                    ],
                   },
                   to: Variable {
                    identifier: "true",
                    position: (199, 24),
                   },
                  },
                 ],
                 recursive: false,
                 position: (196, 28),
                },
               },
              ],
              recursive: false,
              position: (195, 34),
             },
            ],
           },
           position: (195, 5),
          },
         ],
         position: (135, 20),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (79, 1),
   },
   position: (3, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}