Support Questions
Find answers, ask questions, and share your expertise

YARN Registry DNS Start Service fails


I can not start the YARN Registry DNS service. It returns following error message:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/", line 93, in <module>
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 351, in execute
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/", line 53, in 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 93, in service
    Execute(daemon_cmd, user = usr, not_if = check_process)
  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)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ulimit -c unlimited; export HADOOP_LIBEXEC_DIR=/usr/hdp/ && /usr/hdp/ --config /usr/hdp/ --daemon start registrydns' returned 1. mesg: ttyname failed: Inappropriate ioctl for device
ERROR: Cannot set priority of registrydns process 8935

What's the problem with this service? Other YARN services are running flawless.


Hi @Andreas Kühnert ,

can you manually try to execute the command :

ulimit -c unlimited; export HADOOP_LIBEXEC_DIR=/usr/hdp/ && /usr/hdp/ --config /usr/hdp/ --daemon start registrydns

in your host where YARN DNS is installed and see whats output.

I see the error that the error that is coming is something related to Operating system. so just asking have you confirmed the comaptability of operating system in here :

also i see error

ERROR:Cannotset priority of registrydns process 8935

can you go to host and see what is the process 8935 and who owns it ?

This error is shown:

sudo ulimit -c unlimited; export HADOOP_LIBEXEC_DIR=/usr/hdp/ && /usr/hdp/ --config /usr/hdp/ --daemon start registrydns
sudo: ulimit: command not found
ERROR: You must be a privileged user in order to run a secure service.

What files I have to change the permission to user "hadoop" so that I can start registrydns?

; ;