ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <>
Subject [jira] [Created] (AMBARI-12581) Conf-select calls should tolerate failure on existing directory
Date Wed, 29 Jul 2015 16:55:05 GMT
Dmitry Lysnichenko created AMBARI-12581:

             Summary: Conf-select calls should tolerate failure on existing directory
                 Key: AMBARI-12581
             Project: Ambari
          Issue Type: Bug
            Reporter: Dmitry Lysnichenko

Few HDP-2.3 installation ran into problem when install performed on VMs that are not clean.
One of the reported problem is:
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/",
line 38, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 218, in execute
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/",
line 35, in hook
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/",
line 91, in link_configs
    _link_configs(k, json_version, v)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/",
line 156, in _link_configs"HDP", package, version)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/",
line 241, in select
    shell.checked_call(get_cmd("set-conf-dir", package, version), logoutput=False, quiet=False,
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 140, in
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 291, in
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'conf-select set-conf-dir --package
ranger-kms --stack-version --conf-version 0' returned 1. ranger-kms not installed
or incorrect package name

AMBARI-12515 is looking into making conf-select call more robust but host-clean up script
(along with host checkup) need to be modified to handle the new folders introduced under "/etc"
as well as "/usr/hdp/current" or "/usr/hdp/version".

Suggestion from [~ncole] regarding cleaning up conf dirs.

cd /etc
remove accumulo ambari-* atlas hadoop-* hive* hive-* mahout phoenix ranger spark zookeeper
falcon hadoop hbase kafka knox oozie ranger-* (ranger-admin, ranger-kms, ranger-usersync)
slider sqoop storm pig flume hive-hcatalog

The host check script should be modified to include these folders in the report so that the
cleanup script can clean it.

This message was sent by Atlassian JIRA

View raw message