```ruby
Eye.application 'hdfs-namenode-{{ env_name }}' do
  working_dir '/etc/eye'
  stdall '/var/log/eye/hdfs-namenode-{{ 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 :namenode_{{ env_name }} do
    pid_file '{{ hadoop_var_prefix }}/hdfs_namenode.pid'
    start_command 'sudo -u {{ hadoop_user }} {{ hadoop_distr_prefix }}/bin/hdfs namenode'

    daemonize true
    start_timeout 10.seconds
    stop_timeout 5.seconds

  end

end
```

Use uid instead of sudo
user
```ruby
Eye.application 'hdfs-namenode-{{ env_name }}' do
  working_dir '/etc/eye'
  stdall '/var/log/eye/hdfs-namenode-{{ 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 :namenode_{{ env_name }} do
    pid_file '{{ hadoop_var_prefix }}/hdfs_namenode.pid'
    start_command '{{ hadoop_distr_prefix }}/bin/hdfs namenode'

    daemonize true
    start_timeout 10.seconds
    stop_timeout 5.seconds

  end

end
```
assistant