You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Opher Shachar (JIRA)" <ji...@apache.org> on 2019/04/16 20:34:00 UTC

[jira] [Updated] (AMBARI-25257) The Cluster Install Wizard fails on task Ranger Tagsync Install

     [ https://issues.apache.org/jira/browse/AMBARI-25257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Opher Shachar updated AMBARI-25257:
-----------------------------------
    Description: 
Installing HDF 3.4.0. The documentation starts me up with Ambari 2.7.3 that goes on to install HDP 3.1.0.

I'm installing on a single server as Non-Root following the documentation [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_ambari_server_for_non_root.html] and [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html].

When installation starts (after pressing Deploy) I get a failure during "Ranger Tagsync Install"
 +{{stderr}}+
{noformat}
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/ranger_tagsync.py", line 133, in <module>
    RangerTagsync().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/ranger_tagsync.py", line 44, in install
    setup_ranger_xml.ranger_credential_helper(params.tagsync_cred_lib, 'tagadmin.user.password', params.rangertagsync_user_password, params.tagsync_jceks_path)
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/setup_ranger_xml.py", line 595, in ranger_credential_helper
    Execute(cmd, environment={'JAVA_HOME': params.java_home}, logoutput=True, sudo=True)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", 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/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/lib/jvm/java-1.8.0/bin/java -cp '/usr/hdp/current/ranger-tagsync/lib/*' org.apache.ranger.credentialapi.buildks create tagadmin.user.password -value '[PROTECTED]' -provider jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks' returned 1. Sorry, user ambari is not allowed to execute '/usr/lib/jvm/java-1.8.0/bin/java -cp /usr/hdp/current/ranger-tagsync/lib/* org.apache.ranger.credentialapi.buildks create tagadmin.user.password -value Radmin1! -provider jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks' as root on opher-dev7.radcom.co.il.
{noformat}
+{{stdout}}+
{noformat}
2019-04-16 23:04:21,930 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=3.1.0.0-78 -> 3.1.0.0-78
2019-04-16 23:04:21,985 - Using hadoop conf dir: /usr/hdp/3.1.0.0-78/hadoop/conf
2019-04-16 23:04:21,989 - Group['ranger'] {}
2019-04-16 23:04:21,991 - Group['hdfs'] {}
2019-04-16 23:04:21,991 - Group['hadoop'] {}
2019-04-16 23:04:21,992 - Group['users'] {}
2019-04-16 23:04:21,993 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:21,996 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:21,998 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:22,000 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:22,003 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:22,005 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}
2019-04-16 23:04:22,007 - User['ranger'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['ranger', 'hadoop'], 'uid': None}
2019-04-16 23:04:22,010 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:22,013 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop'], 'uid': None}
2019-04-16 23:04:22,015 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-04-16 23:04:22,017 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-04-16 23:04:22,333 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2019-04-16 23:04:22,344 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
2019-04-16 23:04:22,345 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2019-04-16 23:04:22,733 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-04-16 23:04:23,064 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-04-16 23:04:23,372 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2019-04-16 23:04:23,384 - call returned (0, '1011')
2019-04-16 23:04:23,385 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1011'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2019-04-16 23:04:23,396 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1011'] due to not_if
2019-04-16 23:04:23,396 - Group['hdfs'] {}
2019-04-16 23:04:23,397 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop', u'hdfs']}
2019-04-16 23:04:23,398 - FS Type: HDFS
2019-04-16 23:04:23,398 - Directory['/etc/hadoop'] {'mode': 0755}
2019-04-16 23:04:23,565 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2019-04-16 23:04:23,806 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2019-04-16 23:04:24,014 - Repository['HDP-3.1-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0', 'action': ['prepare'], 'components': [u'HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2019-04-16 23:04:24,029 - Repository['HDP-3.1-GPL-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0', 'action': ['prepare'], 'components': [u'HDP-GPL', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2019-04-16 23:04:24,035 - Repository['HDP-UTILS-1.1.0.22-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7', 'action': ['prepare'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2019-04-16 23:04:24,043 - Repository[None] {'action': ['create']}
2019-04-16 23:04:24,045 - File['/tmp/tmpFMb0qM'] {'content': '[HDP-3.1-repo-1]\nname=HDP-3.1-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-3.1-GPL-repo-1]\nname=HDP-3.1-GPL-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-1]\nname=HDP-UTILS-1.1.0.22-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
2019-04-16 23:04:24,229 - Writing File['/tmp/tmpFMb0qM'] because contents don't match
2019-04-16 23:04:24,271 - File['/tmp/tmpj31pls'] {'content': StaticFile('/etc/yum.repos.d/ambari-hdp-1.repo')}
2019-04-16 23:04:24,557 - Writing File['/tmp/tmpj31pls'] because contents don't match
2019-04-16 23:04:24,600 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-04-16 23:04:26,114 - Skipping installation of existing package unzip
2019-04-16 23:04:26,114 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-04-16 23:04:26,119 - Skipping installation of existing package curl
2019-04-16 23:04:26,120 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-04-16 23:04:27,301 - Skipping installation of existing package hdp-select
2019-04-16 23:04:27,312 - The repository with version 3.1.0.0-78 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2019-04-16 23:04:27,954 - Package['ranger_3_1_0_0_78-admin'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-04-16 23:04:29,763 - Skipping installation of existing package ranger_3_1_0_0_78-admin
2019-04-16 23:04:29,766 - Package['ranger_3_1_0_0_78-usersync'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-04-16 23:04:29,785 - Skipping installation of existing package ranger_3_1_0_0_78-usersync
2019-04-16 23:04:29,789 - Package['ranger_3_1_0_0_78-tagsync'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-04-16 23:04:30,762 - Skipping installation of existing package ranger_3_1_0_0_78-tagsync
2019-04-16 23:04:30,766 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=3.1.0.0-78 -> 3.1.0.0-78
2019-04-16 23:04:30,940 - Execute[(u'/usr/lib/jvm/java-1.8.0/bin/java', '-cp', u'/usr/hdp/current/ranger-tagsync/lib/*', 'org.apache.ranger.credentialapi.buildks', 'create', 'tagadmin.user.password', '-value', [PROTECTED], '-provider', u'jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks')] {'logoutput': True, 'environment': {'JAVA_HOME': u'/usr/lib/jvm/java-1.8.0'}, 'sudo': True}
Sorry, user ambari is not allowed to execute '/usr/lib/jvm/java-1.8.0/bin/java -cp /usr/hdp/current/ranger-tagsync/lib/* org.apache.ranger.credentialapi.buildks create tagadmin.user.password -value Radmin1! -provider jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks' as root on opher-dev7.radcom.co.il.
2019-04-16 23:04:30,989 - The repository with version 3.1.0.0-78 for this command has been marked as resolved. It will be used to report the version of the component which was installed

Command failed after 1 tries
{noformat}
The workaround is to remove the _sudo_ argument to _Execute_ function in {{/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/setup_ranger_xml.py}} and retry.

  was:
Installing HDF 3.4.0. The documentation starts me up with Ambari 2.7.3 that goes on to install HDP 3.1.0.

I'm installing on a single server as Non-Root following the documentation [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_ambari_server_for_non_root.html] and [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html].

When installation starts (after pressing Deploy) I get a failure during "DRPC Server Install"
{noformat}
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stack-hooks/after-INSTALL/scripts/hook.py", line 39, in <module>
    AfterInstallHook().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stack-hooks/after-INSTALL/scripts/hook.py", line 32, in hook
    setup_stack_symlinks(self.stroutfile)
  File "/var/lib/ambari-agent/cache/stack-hooks/after-INSTALL/scripts/shared_initialization.py", line 66, in setup_stack_symlinks
    stack_select.select(package, json_version)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py", line 312, in select
    Execute(command, sudo=True)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", 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/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-python-wrap /usr/bin/hdp-select set storm-client 3.1.0.0-78' returned 1. symlink target /usr/hdp/current/storm-client for storm already exists and it is not a symlink.
{noformat}
The workaround is to do the following:
{code:sh}
cd /usr/hdp/current
rm -rf storm-client
ln -s /usr/hdp/3.1.0.0-78/storm storm-client
{code}
and retry.


> The Cluster Install Wizard fails on task Ranger Tagsync Install
> ---------------------------------------------------------------
>
>                 Key: AMBARI-25257
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25257
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.7.3
>         Environment: CentOS 7.6
> Ambari 2.7.3
> HDP 3.1.0
> Install on single-server as Non-Root
>            Reporter: Opher Shachar
>            Priority: Critical
>
> Installing HDF 3.4.0. The documentation starts me up with Ambari 2.7.3 that goes on to install HDP 3.1.0.
> I'm installing on a single server as Non-Root following the documentation [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_ambari_server_for_non_root.html] and [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html].
> When installation starts (after pressing Deploy) I get a failure during "Ranger Tagsync Install"
>  +{{stderr}}+
> {noformat}
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/ranger_tagsync.py", line 133, in <module>
>     RangerTagsync().execute()
>   File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/ranger_tagsync.py", line 44, in install
>     setup_ranger_xml.ranger_credential_helper(params.tagsync_cred_lib, 'tagadmin.user.password', params.rangertagsync_user_password, params.tagsync_jceks_path)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/setup_ranger_xml.py", line 595, in ranger_credential_helper
>     Execute(cmd, environment={'JAVA_HOME': params.java_home}, logoutput=True, sudo=True)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
>     self.env.run()
>   File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
>     self.run_action(resource, action)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
>     provider_action()
>   File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
>     returns=self.resource.returns)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
>     result = function(command, **kwargs)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", 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/shell.py", line 150, in _call_wrapper
>     result = _call(command, **kwargs_copy)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
>     raise ExecutionFailed(err_msg, code, out, err)
> resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/lib/jvm/java-1.8.0/bin/java -cp '/usr/hdp/current/ranger-tagsync/lib/*' org.apache.ranger.credentialapi.buildks create tagadmin.user.password -value '[PROTECTED]' -provider jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks' returned 1. Sorry, user ambari is not allowed to execute '/usr/lib/jvm/java-1.8.0/bin/java -cp /usr/hdp/current/ranger-tagsync/lib/* org.apache.ranger.credentialapi.buildks create tagadmin.user.password -value Radmin1! -provider jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks' as root on opher-dev7.radcom.co.il.
> {noformat}
> +{{stdout}}+
> {noformat}
> 2019-04-16 23:04:21,930 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=3.1.0.0-78 -> 3.1.0.0-78
> 2019-04-16 23:04:21,985 - Using hadoop conf dir: /usr/hdp/3.1.0.0-78/hadoop/conf
> 2019-04-16 23:04:21,989 - Group['ranger'] {}
> 2019-04-16 23:04:21,991 - Group['hdfs'] {}
> 2019-04-16 23:04:21,991 - Group['hadoop'] {}
> 2019-04-16 23:04:21,992 - Group['users'] {}
> 2019-04-16 23:04:21,993 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:21,996 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:21,998 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:22,000 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:22,003 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:22,005 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}
> 2019-04-16 23:04:22,007 - User['ranger'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['ranger', 'hadoop'], 'uid': None}
> 2019-04-16 23:04:22,010 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:22,013 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop'], 'uid': None}
> 2019-04-16 23:04:22,015 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
> 2019-04-16 23:04:22,017 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
> 2019-04-16 23:04:22,333 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
> 2019-04-16 23:04:22,344 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
> 2019-04-16 23:04:22,345 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
> 2019-04-16 23:04:22,733 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
> 2019-04-16 23:04:23,064 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
> 2019-04-16 23:04:23,372 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
> 2019-04-16 23:04:23,384 - call returned (0, '1011')
> 2019-04-16 23:04:23,385 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1011'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
> 2019-04-16 23:04:23,396 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1011'] due to not_if
> 2019-04-16 23:04:23,396 - Group['hdfs'] {}
> 2019-04-16 23:04:23,397 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop', u'hdfs']}
> 2019-04-16 23:04:23,398 - FS Type: HDFS
> 2019-04-16 23:04:23,398 - Directory['/etc/hadoop'] {'mode': 0755}
> 2019-04-16 23:04:23,565 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
> 2019-04-16 23:04:23,806 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
> 2019-04-16 23:04:24,014 - Repository['HDP-3.1-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0', 'action': ['prepare'], 'components': [u'HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
> 2019-04-16 23:04:24,029 - Repository['HDP-3.1-GPL-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0', 'action': ['prepare'], 'components': [u'HDP-GPL', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
> 2019-04-16 23:04:24,035 - Repository['HDP-UTILS-1.1.0.22-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7', 'action': ['prepare'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
> 2019-04-16 23:04:24,043 - Repository[None] {'action': ['create']}
> 2019-04-16 23:04:24,045 - File['/tmp/tmpFMb0qM'] {'content': '[HDP-3.1-repo-1]\nname=HDP-3.1-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-3.1-GPL-repo-1]\nname=HDP-3.1-GPL-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-1]\nname=HDP-UTILS-1.1.0.22-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
> 2019-04-16 23:04:24,229 - Writing File['/tmp/tmpFMb0qM'] because contents don't match
> 2019-04-16 23:04:24,271 - File['/tmp/tmpj31pls'] {'content': StaticFile('/etc/yum.repos.d/ambari-hdp-1.repo')}
> 2019-04-16 23:04:24,557 - Writing File['/tmp/tmpj31pls'] because contents don't match
> 2019-04-16 23:04:24,600 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
> 2019-04-16 23:04:26,114 - Skipping installation of existing package unzip
> 2019-04-16 23:04:26,114 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
> 2019-04-16 23:04:26,119 - Skipping installation of existing package curl
> 2019-04-16 23:04:26,120 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
> 2019-04-16 23:04:27,301 - Skipping installation of existing package hdp-select
> 2019-04-16 23:04:27,312 - The repository with version 3.1.0.0-78 for this command has been marked as resolved. It will be used to report the version of the component which was installed
> 2019-04-16 23:04:27,954 - Package['ranger_3_1_0_0_78-admin'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
> 2019-04-16 23:04:29,763 - Skipping installation of existing package ranger_3_1_0_0_78-admin
> 2019-04-16 23:04:29,766 - Package['ranger_3_1_0_0_78-usersync'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
> 2019-04-16 23:04:29,785 - Skipping installation of existing package ranger_3_1_0_0_78-usersync
> 2019-04-16 23:04:29,789 - Package['ranger_3_1_0_0_78-tagsync'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
> 2019-04-16 23:04:30,762 - Skipping installation of existing package ranger_3_1_0_0_78-tagsync
> 2019-04-16 23:04:30,766 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=3.1.0.0-78 -> 3.1.0.0-78
> 2019-04-16 23:04:30,940 - Execute[(u'/usr/lib/jvm/java-1.8.0/bin/java', '-cp', u'/usr/hdp/current/ranger-tagsync/lib/*', 'org.apache.ranger.credentialapi.buildks', 'create', 'tagadmin.user.password', '-value', [PROTECTED], '-provider', u'jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks')] {'logoutput': True, 'environment': {'JAVA_HOME': u'/usr/lib/jvm/java-1.8.0'}, 'sudo': True}
> Sorry, user ambari is not allowed to execute '/usr/lib/jvm/java-1.8.0/bin/java -cp /usr/hdp/current/ranger-tagsync/lib/* org.apache.ranger.credentialapi.buildks create tagadmin.user.password -value Radmin1! -provider jceks://file/usr/hdp/current/ranger-tagsync/conf/rangertagsync.jceks' as root on opher-dev7.radcom.co.il.
> 2019-04-16 23:04:30,989 - The repository with version 3.1.0.0-78 for this command has been marked as resolved. It will be used to report the version of the component which was installed
> Command failed after 1 tries
> {noformat}
> The workaround is to remove the _sudo_ argument to _Execute_ function in {{/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/setup_ranger_xml.py}} and retry.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)