Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-7282

[jb] 'int' object has no attribute 'lower' when click on certain jobs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.1.0
    • Component/s: app.jobbrowser
    • Labels:
      None

      Description

      [14/Sep/2017 17:50:16 -0700] connectionpool DEBUG    "nightly6x-1.gce.cloudera.com:8090 GET /ws/v1/cluster/apps?startedTimeBegin=1504831816000&limit=500&user=admin&doAs=admin HTTP/1.1" 200 None
      
      [14/Sep/2017 17:50:16 -0700] connection   WARNING  /opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.166654/lib/hue/build/env/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg/requests/packages/urllib3/connection.py:303: SubjectAltNameWarning: Certificate for nightly6x-1.gce.cloudera.com has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
        SubjectAltNameWarning
      
      [14/Sep/2017 17:50:16 -0700] api2         ERROR    Error running <function job at 0x7fbe244f19b0>
      Traceback (most recent call last):
        File "/opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.166654/lib/hue/apps/jobbrowser/src/jobbrowser/api2.py", line 38, in decorator
          return func(*args, **kwargs)
        File "/opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.166654/lib/hue/apps/jobbrowser/src/jobbrowser/api2.py", line 73, in job
          response['app'] = get_api(request.user, interface).app(app_id)
        File "/opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.166654/lib/hue/apps/jobbrowser/src/jobbrowser/apis/job_api.py", line 57, in app
          return self._get_api(appid).app(appid)
        File "/opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.166654/lib/hue/apps/jobbrowser/src/jobbrowser/apis/job_api.py", line 144, in app
          app = massage_job_for_json(job, user=self.user)
        File "/opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.166654/lib/hue/apps/jobbrowser/src/jobbrowser/views.py", line 178, in massage_job_for_json
          'priority': hasattr(job, 'priority') and job.priority.lower() or _('N/A'),
      AttributeError: 'int' object has no attribute 'lower'
      
      [14/Sep/2017 17:50:16 -0700] resource     DEBUG    GET Got response: {"app":{"id":"application_1505423078055_0003","user":"admin","name":"-- Select customers for a given sh...'76710'(Stage-1)","queue":"root.users.admin","state":"FAILED","finalStatus":"FAILED","progress":0.0,"trackingUI":"History","trackingUrl":"https://nightly6x-1.gce.cloudera.com:8090/cluster/app/application_1505423078055_0003","diagnostics":"Application application_1505423078055_0003 failed 2 times due to AM Container for appattempt_1505423078055_0003_000002 exited with  exitCode: -1000\nFailing this attempt.Diagnostics: [2017-09-14 17:50:02.724]Application application_1505423078055_0003 initialization failed (exitCode=255) with output: main : command provided 0\nmain : run as user is admin\nmain : requested yarn user is admin\nUser admin not found\n[2017-09-14 17:50:02.724]\nFor more detailed output, check the application tracking page: https://nightly6x-1.gce.cloudera.com:8090/cluster/app/application_1505423078055_0003 Then click on links to logs of each attempt.\n. Failing the appl...
      
      [14/Sep/2017 17:50:16 -0700] kerberos_    DEBUG    handle_response(): returning <Response [200]>
      
      [14/Sep/2017 17:50:16 -0700] kerberos_    DEBUG    handle_mutual_auth(): Handling: 200
      
      [14/Sep/2017 17:50:16 -0700] connectionpool DEBUG    "nightly6x-1.gce.cloudera.com:8090 GET /ws/v1/cluster/apps/application_1505423078055_0003?doAs=admin HTTP/1.1" 200 None
      

        Attachments

          Activity

            People

            • Assignee:
              romain Romain Rigaux
              Reporter:
              romain Romain Rigaux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: