ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale Bradman (JIRA)" <>
Subject [jira] [Created] (AMBARI-20829) cached_kinit_executor fails to handle non-ms timestamps
Date Mon, 24 Apr 2017 08:30:04 GMT
Dale Bradman created AMBARI-20829:

             Summary: cached_kinit_executor fails to handle non-ms timestamps
                 Key: AMBARI-20829
             Project: Ambari
          Issue Type: Bug
          Components: ambari-upgrade
    Affects Versions: trunk
            Reporter: Dale Bradman

This error message was printed during an Express upgrade to HDP-

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HIVE/",
line 259, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 280, in execute
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 696, in restart
    self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/",
line 114, in pre_upgrade_restart
  File "/var/lib/ambari-agent/cache/common-services/HIVE/",
line 198, in upgrade_schema
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/",
line 208, in cached_kinit_executor
    if (now - datetime.strptime(last_run_time, "%Y-%m-%d %H:%M:%S.%f") > timedelta(minutes=expiration_time)):
  File "/usr/lib/python2.7/", line 325, in _strptime
    (data_string, format))
ValueError: time data '2016-12-19 22:37:33' does not match format '%Y-%m-%d %H:%M:%S.%f'

Doing some digging, the /usr/lib/python2.6/site-packages/resource_management/libraries/functions/
does not handle non millisecond timestamps (line 205). 
The timestamp it is trying to analyse here is the /var/lib/ambari-agent/tmp/kinit_executor_cache/<<hash(hive.service.keytab|>>.
The timestamp within this file matches that of the error: “'2016-12-19 22:37:33'” –
which contains no miliseconds. There are other files in this directory all of which have timesstamps
with miliseconds.

This message was sent by Atlassian JIRA

View raw message