Support Questions

Find answers, ask questions, and share your expertise

resource_management.core.exceptions.Fail: Execution of 'conf-select set-conf-dir --package zookeeper --stack-version 2.4.0.0-169 --conf-version 0' returned 1. /usr/hdp/2.4.0.0-169/zookeeper/conf does not exist

avatar
Contributor

i have the problem

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py", line 179, in <module>
    ZookeeperServer().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/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py", line 70, in install
    self.configure(env)
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py", line 49, in configure
    zookeeper(type='server', upgrade_type=upgrade_type)
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper.py", line 40, in zookeeper
    conf_select.select(params.stack_name, "zookeeper", params.current_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 zookeeper --stack-version 2.4.0.0-169 --conf-version 0' returned 1. /usr/hdp/2.4.0.0-169/zookeeper/conf does not exist

but, i have files

4639-qq图片20160529135149.png

some guys can help me please!

1 ACCEPTED SOLUTION

avatar
Master Guru

That error is thrown when /usr/hdp/2.4.0.0-169/zookeeper/conf doesn't exist, and also when it exists but is not a symlink. Try to organize the links manually in this way, and move the files to /etc/zookeeper/2.4.0.0-169/0

/etc/zookeeper/conf -> /usr/hdp/current/zookeeper-client/conf
/usr/hdp/current/zookeeper-client/conf -> /etc/zookeeper/2.4.0.0-169/0

View solution in original post

2 REPLIES 2

avatar
Master Guru

That error is thrown when /usr/hdp/2.4.0.0-169/zookeeper/conf doesn't exist, and also when it exists but is not a symlink. Try to organize the links manually in this way, and move the files to /etc/zookeeper/2.4.0.0-169/0

/etc/zookeeper/conf -> /usr/hdp/current/zookeeper-client/conf
/usr/hdp/current/zookeeper-client/conf -> /etc/zookeeper/2.4.0.0-169/0

avatar
Contributor

hey, i try to move /usr/hdp/current/zookeeper-client/conf to /etc/zookeeper/2.4.0.0-169/ , i can't find /usr/hdp/current/zookeeper-client/

4654-qq图片20160530182836.png

and i can't find /etc/zookeeper/.

so, can you tell why? and do you have other ways?