예제 #1
0
파일: mixin.py 프로젝트: Dean838/mrjob
    def _pick_counters(self, log_interpretation):
        """Pick counters from our log interpretation, interpreting
        history logs if need be."""
        counters = _pick_counters(log_interpretation)

        if not counters:
            log.info('Attempting to fetch counters from logs...')
            self._interpret_step_logs(log_interpretation)
            counters = _pick_counters(log_interpretation)

        if not counters:
            self._interpret_history_log(log_interpretation)
            counters = _pick_counters(log_interpretation)

        return counters
예제 #2
0
    def _pick_counters(self, log_interpretation):
        """Pick counters from our log interpretation, interpreting
        history logs if need be."""
        counters = _pick_counters(log_interpretation)

        if not counters:
            log.info('Attempting to fetch counters from logs...')
            self._interpret_step_logs(log_interpretation)
            counters = _pick_counters(log_interpretation)

        if not counters:
            self._interpret_history_log(log_interpretation)
            counters = _pick_counters(log_interpretation)

        return counters
예제 #3
0
 def counters(self):
     # TODO - mtai @ davidmarin - Counters are currently always empty as we
     # are not processing task logs
     return [
         _pick_counters(log_interpretation)
         for log_interpretation in self._log_interpretations
     ]
예제 #4
0
파일: mixin.py 프로젝트: espenwiik91/BDEM
    def _pick_counters(self, log_interpretation, step_type):
        """Pick counters from our log interpretation, interpreting
        history logs if need be."""
        if _is_spark_step_type(step_type):
            return {}

        counters = _pick_counters(log_interpretation)

        if self._read_logs():
            if not counters:
                log.info('Attempting to fetch counters from logs...')
                self._interpret_step_logs(log_interpretation, step_type)
                counters = _pick_counters(log_interpretation)

            if not counters:
                self._interpret_history_log(log_interpretation)
                counters = _pick_counters(log_interpretation)

        return counters
예제 #5
0
파일: hadoop.py 프로젝트: okomestudio/mrjob
 def counters(self):
     return [_pick_counters(log_interpretation)
             for log_interpretation in self._log_interpretations]
예제 #6
0
 def counters(self):
     return [
         _pick_counters(log_interpretation)
         for log_interpretation in self._log_interpretations
     ]
예제 #7
0
 def counters(self):
     # TODO - mtai @ davidmarin - Counters are currently always empty as we
     # are not processing task logs
     return [_pick_counters(log_interpretation)
             for log_interpretation in self._log_interpretations]