def add_mock_hadoop_counters(counters):
 counter_path = os.path.join(get_mock_dir('counters'), (iso_now() + '.json'))
 with open(counter_path, 'w') as f:
  json.dump(counters, f)

def add_mock_hadoop_counters ( counters ) : counter_path = os . path . join ( get_mock_dir ( 'counters' ) , ( iso_now ( ) + '.json' ) ) with open ( counter_path , 'w' ) as f : json . dump ( counters , f )
add counters for a subsequent run of the hadoop jar command .