Support Questions

Find answers, ask questions, and share your expertise

YARN doesn 't start

avatar
Explorer

Hi,

Yarn doesn't start.

Here the log :

stderr

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 39, in <module>
    BeforeStartHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 28, in hook
    import params
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", line 123, in <module>
    hadoop_conf_dir = conf_select.get_hadoop_conf_dir(force_latest_on_upgrade=True)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 374, in get_hadoop_conf_dir
    select(stack_name, "hadoop", version)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 252, in select
    shell.checked_call(get_cmd("set-conf-dir", package, version), logoutput=False, quiet=False, sudo=True)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0' returned 1. sudo: no tty present and no askpass program specified

stdout

2016-04-08 13:47:08,962 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.0.0-169
2016-04-08 13:47:08,962 - Checking if need to create versioned conf dir /etc/hadoop/2.4.0.0-169/0
2016-04-08 13:47:08,962 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-04-08 13:47:08,977 - call returned (1, '', 'sudo: no tty present and no askpass program specified')
2016-04-08 13:47:08,977 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
1 ACCEPTED SOLUTION

avatar
Expert Contributor

Please try to execute the command manually on the node and see what it returns:

conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0

This also looks specific to the environment: sudo:no tty present andno askpass program specified. You could try manually starting on the node which may give more details.

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

Please try to execute the command manually on the node and see what it returns:

conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0

This also looks specific to the environment: sudo:no tty present andno askpass program specified. You could try manually starting on the node which may give more details.

avatar
Explorer

I restarted the server and it works. I will investigate more If this happens again. Thanks for the tips!