<commit_before>#!/bin/bash

set -ex

sleep 2

consul-template -consul localhost:8500 -once -template "/etc/consul-templates/hadoop/hdfs-site.xml.ctmpl:/opt/hadoop/etc/hadoop/hdfs-site.xml"
consul-template -consul localhost:8500 -once -template "/etc/consul-templates/hadoop/core-site.xml.ctmpl:/opt/hadoop/etc/hadoop/core-site.xml"

exit 0<commit_msg>adjust configure in case we are waiting for the namenode<commit_after>#!/bin/bash
set -ex
source /opt/qnib/consul/etc/bash_functions.sh

sleep 2

if [ "X${HADOOP_HDFS_NAMENODE}" != "Xtrue" ];then
    wait_for_srv hdfs-namenode
fi
consul-template -consul localhost:8500 -once -template "/etc/consul-templates/hadoop/hdfs-site.xml.ctmpl:/opt/hadoop/etc/hadoop/hdfs-site.xml"
consul-template -consul localhost:8500 -once -template "/etc/consul-templates/hadoop/core-site.xml.ctmpl:/opt/hadoop/etc/hadoop/core-site.xml"
exit 0
{'fraction_non_alphanumeric': 0.145475372279496, 'fraction_numerical': 0.022909507445589918, 'mean_word_length': 4.602564102564102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2205546', 'n_tokens_mistral': 356, 'n_tokens_neox': 323, 'n_words': 55}