Browse Source

HUE-3840 [jb] Add debug info in possible 500 when pulling job conf from YARN

Romain Rigaux 9 years ago
parent
commit
426a8b8476
1 changed files with 5 additions and 1 deletions
  1. 5 1
      apps/jobbrowser/src/jobbrowser/yarn_models.py

+ 5 - 1
apps/jobbrowser/src/jobbrowser/yarn_models.py

@@ -245,7 +245,11 @@ class Job(object):
   @property
   def full_job_conf(self):
     if not hasattr(self, '_full_job_conf'):
-      self._full_job_conf = self.api.conf(self.id)['conf']
+      try:
+        conf = self.api.conf(self.id)
+        self._full_job_conf = conf['conf']
+      except TypeError, e:
+        LOG.exception('YARN API call failed to return all the data: %s' % conf)
     return self._full_job_conf
 
   @property