Exemple #1
0
  def logs(self, appid, app_type, log_name, is_embeddable=False):
    if log_name == 'default':
      log_name = 'stdout'

    task = NativeYarnApi(self.user).get_task(jobid=self.app_id, task_id=self.task_id).get_attempt(self.attempt_id)
    stdout, stderr, syslog = task.get_task_log()

    return {'progress': 0, 'logs': syslog if log_name == 'syslog' else stderr if log_name == 'stderr' else stdout}
Exemple #2
0
  def logs(self, appid, app_type, log_name, is_embeddable=False):
    if log_name == 'default':
      log_name = 'stdout'

    task = NativeYarnApi(self.user).get_task(jobid=self.app_id, task_id=self.task_id).get_attempt(self.attempt_id)
    stdout, stderr, syslog = task.get_task_log()

    return {'progress': 0, 'logs': syslog if log_name == 'syslog' else stderr if log_name == 'stderr' else stdout}
Exemple #3
0
    def logs(self, appid, app_type):
        task = NativeYarnApi(self.user).get_task(
            jobid=self.app_id,
            task_id=self.task_id).get_attempt(self.attempt_id)
        stdout, stderr, syslog = task.get_task_log()

        return {
            'progress': 0,
            'logs': {
                'default': stdout,
                'stdout': stdout,
                'stderr': stderr,
                'syslog': syslog
            }
        }
Exemple #4
0
  def logs(self, appid, app_type):
    task = NativeYarnApi(self.user).get_task(jobid=self.app_id, task_id=self.task_id).get_attempt(self.attempt_id)
    stdout, stderr, syslog = task.get_task_log()

    return {'progress': 0, 'logs': {'default': stdout, 'stdout': stdout, 'stderr': stderr, 'syslog': syslog}}