Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Yarn won't start


Yarn won't start

New Contributor

I was trying to sychnronize the ambari server with the ldap ipa using '/usr/sbin/ambari-server sync-ldap --all', which didn't pass, saying ambari-server were stoped (It was NOT), anyway I did a kill -9 to the ambari server process, and started it again. After that I passe the sync command with success.
After this, yarn wouldn't start and gave me this error while trying to start resourcemanager :




Traceback (most recent call last):
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of '  -H -E test -f /var/run/hadoop-yarn/yarn/ &&  -H -E pgrep -F /var/run/hadoop-yarn/yarn/' returned 1. 

The above exception was the cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/", line 261, in 
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 352, in execute
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/", line 144, in start
    service('resourcemanager', action='start')
  File "/usr/lib/ambari-agent/lib/ambari_commons/", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/", line 116, in service
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 166, in __init__
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 124, in run_action
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/", line 263, in action_run
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)




Thanks in advance


Re: Yarn won't start


found two values for the search "java configuration options for node manager"

copy/paste to make the same

(we added JMX parameters)

this seems to have fixed it.

needs verification.

Don't have an account?
Coming from Hortonworks? Activate your account here