<commit_before><?xml version="1.0"?>
<!--
################################################
#
#              Generated by Chef
#
################################################
-->
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
  <% if @rm_hosts.length > 2 %>
    <property> 
      <name>yarn.resourcemanager.ha.enabled</name> 
      <value>true</value>
    </property> 

    <property>
      <name>yarn.resourcemanager.ha.rm-ids</name>
      <value><%=@nn_hosts.map{ |s| "rm#{node.chef_environment}#{s[:bcpc][:node_number]}" }.join(",") %></value>
    </property>

    <% @nn_hosts.each do |h| %>   
      <property>
        <name>yarn.resourcemanager.hostname.rm<%= "#{node.chef_environment}#{h[:bcpc][:node_number]}" %></name>
        <value><%=float_host(h[:hostname]) %>:8020</value>
      </property>
    <% end %><commit_msg>Fix nn_hosts to rm_hosts<commit_after><?xml version="1.0"?>
<!--
################################################
#
#              Generated by Chef
#
################################################
-->
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
  <% if @rm_hosts.length > 2 %>
    <property> 
      <name>yarn.resourcemanager.ha.enabled</name> 
      <value>true</value>
    </property> 

    <property>
      <name>yarn.resourcemanager.ha.rm-ids</name>
      <value><%=@rm_hosts.map{ |s| "rm#{node.chef_environment}#{s[:bcpc][:node_number]}" }.join(",") %></value>
    </property>

    <% @rm_hosts.each do |h| %>   
      <property>
        <name>yarn.resourcemanager.hostname.rm<%= "#{node.chef_environment}#{h[:bcpc][:node_number]}" %></name>
        <value><%=float_host(h[:hostname]) %>:8020</value>
      </property>
    <% end %>
{'fraction_non_alphanumeric': 0.3100864553314121, 'fraction_numerical': 0.008069164265129682, 'mean_word_length': 3.7431693989071038, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 2, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5711014', 'n_tokens_mistral': 613, 'n_tokens_neox': 569, 'n_words': 73}