<commit_before>Eye.application 'hdfs-journalnode-{{ env_name }}' do
  working_dir '/etc/eye'
  stdall '/var/log/eye/hdfs-journalnode-{{ env_name }}-stdall.log' # stdout,err logs for processes by default
  trigger :flapping, times: 10, within: 1.minute, retry_in: 3.minutes
  check :cpu, every: 10.seconds, below: 100, times: 3 # global check for all processes

  process :journalnode_{{ env_name }} do
    pid_file '{{ hadoop_var_prefix }}/hdfs_journalnode-{{ env_name }}.pid'
    start_command 'sudo -u {{ hadoop_user }} {{ hadoop_distr_prefix }}/bin/hdfs journalnode'

    daemonize true
    start_timeout 10.seconds
    stop_timeout 5.seconds

  end

end
<commit_msg>Use uid instead of sudo<commit_after>Eye.application 'hdfs-journalnode-{{ env_name }}' do
  working_dir '/etc/eye'
  stdall '/var/log/eye/hdfs-journalnode-{{ env_name }}-stdall.log' # stdout,err logs for processes by default
  trigger :flapping, times: 10, within: 1.minute, retry_in: 3.minutes
  check :cpu, every: 10.seconds, below: 100, times: 3 # global check for all processes
  uid "{{ hadoop_user }}"

  process :journalnode_{{ env_name }} do
    pid_file '{{ hadoop_var_prefix }}/hdfs_journalnode-{{ env_name }}.pid'
    start_command '{{ hadoop_distr_prefix }}/bin/hdfs journalnode'

    daemonize true
    start_timeout 10.seconds
    stop_timeout 5.seconds

  end

end

{'fraction_non_alphanumeric': 0.1237037037037037, 'fraction_numerical': 0.01925925925925926, 'mean_word_length': 4.136882129277566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4913159', 'n_tokens_mistral': 499, 'n_tokens_neox': 454, 'n_words': 125}