Reply
Explorer
Posts: 23
Registered: ‎02-07-2015

HTTP 500 error launching Oozie bundle

When launchin a bundle with no kickoff date (defaults to now), and a begin date on the actions in the future, I always get a HTTP 500 error while listing the bundle.

The log reads:

 

Failed to convert Oozie timestamp: %a, %d %b %Y %H:%M:%S %Z
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/libs/liboozie/src/liboozie/utils.py", line 45, in parse_timestamp
    return time.strptime(timestamp, time_format)
  File "/usr/lib64/python2.6/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib64/python2.6/_strptime.py", line 322, in _strptime
    found = format_regex.match(data_string)
TypeError: expected string or buffer

 

Processing exception: argument must be 9-item sequence, not None: Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py", line 371, in inner
    return func(*args, **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/apps/oozie/src/oozie/views/dashboard.py", line 151, in decorate
    return view_func(request, *args, **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/apps/oozie/src/oozie/views/dashboard.py", line 444, in list_oozie_bundle
    'has_job_edition_permission': has_job_edition_permission,
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 225, in render
    **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 146, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 125, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
    result = template.render(**data_dict)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 786, in _render
    **_kwargs_for_callable(callable_, data))
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 818, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 844, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmp5IXpST/oozie/dashboard/list_oozie_bundle.mako.py", line 106, in render_body
    __M_writer(escape(unicode( oozie_bundle.get_progress() )))
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/libs/liboozie/src/liboozie/types.py", line 618, in get_progress
    progresses = [action.get_progress() for action in self.actions]
  File "/opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue/desktop/libs/liboozie/src/liboozie/types.py", line 277, in get_progress
    next = mktime(parse_timestamp(self.lastAction))
TypeError: argument must be 9-item sequence, not None

 

Seems as if the the last action is not defined (None) and parse_timestamp isn't handling the error like it should.

Is this a straight bug or am I doing something wrong ?

 

This is CDH5.4, independently of what the label says...

 

 

Cloudera Employee
Posts: 712
Registered: ‎07-30-2013

Re: HTTP 500 error launching Oozie bundle

Highlighted
New Contributor
Posts: 2
Registered: ‎03-16-2017

Re: HTTP 500 error launching Oozie bundle

I solved the issue by setting locale from zh_CN.utf-8 to en_US.utf-8. Make sure the locale is correct.
Announcements