[ https://issues.apache.org/jira/browse/AMBARI-18184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hurley updated AMBARI-18184: ------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) > Hive Metastore restart failed during EU with 'Internal credentials cache > error' while running kinit > --------------------------------------------------------------------------------------------------- > > Key: AMBARI-18184 > URL: https://issues.apache.org/jira/browse/AMBARI-18184 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Jonathan Hurley > Assignee: Jonathan Hurley > Priority: Blocker > Labels: 240RMApproved > Fix For: 2.4.0 > > Attachments: AMBARI-18184.patch > > > ambari-server --hash > 8250e90dc9ebcf1bd3dbac9b9eca8a6e21e073c9 > ambari-server-2.4.0.0-1127.x86_64 > Observed this issue in one EU run with below steps: > # Install HDP-2.4.0.0 cluster with Ambari 2.2.1.1 (secure, HA cluster) > # Upgrade Ambari to 2.4.0.0 > # Perform EU to 2.4.2.0 and let it complete > # Start EU to 2.5.0.0 > Observed below error during Hive Metastore restart > {code} > Traceback (most recent call last): > File > \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\", > line 254, in <module> > HiveMetastore().execute() > File > \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", > line 280, in execute > method(env) > File > \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", > line 696, in restart > self.pre_upgrade_restart(env, upgrade_type=upgrade_type) > File > \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\", > line 114, in pre_upgrade_restart > self.upgrade_schema(env) > File > \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\", > line 193, in upgrade_schema > Execute(kinit_command,user=params.smokeuser) > File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", > line 155, in __init__ > self.env.run() > File > \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", > line 160, in run > self.run_action(resource, action) > File > \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", > line 124, in run_action > provider_action() > File > \"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\", > line 273, in action_run > tries=self.resource.tries, try_sleep=self.resource.try_sleep) > File > \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line > 71, in inner > result = function(command, **kwargs) > File > \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line > 93, in checked_call > tries=tries, try_sleep=try_sleep) > File > \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line > 141, in _call_wrapper > result = _call(command, **kwargs_copy) > File > \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line > 294, in _call > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of '/usr/bin/kinit -kt > /etc/security/keytabs/smokeuser.headless.keytab ambari...@example.com; ' > returned 1. kinit: Internal credentials cache error while storing credentials > while getting initial credentials" > {code} > *A retry of the above failed task was successful and then EU proceeded to > completion* -- This message was sent by Atlassian JIRA (v6.3.4#6332)