% import json % import urllib % from webui_lib import * % url = "http://localhost:" + slave_port + "/slave/state.json" % data = urllib.urlopen(url).read() % state = json.loads(data) Executor {{framework_id}}:{{executor_id}}

Executor {{framework_id}}:{{executor_id}}

Logs: [stdout] [stderr]

% # Find the framework with the given ID. % framework = None % for i in range(len(state['frameworks'])): % if state['frameworks'][i]['id'] == framework_id: % framework = state['frameworks'][i] % end % end

Tasks

% if framework != None: % for executor in framework['executors']: % if executor['id'] == executor_id: % for task in executor['tasks']: % end
ID Name State
{{task['id']}} {{task['name']}} {{task['state']}}
% end % end % else:

No framework with ID {{framework_id}} is active on this slave.

% end

Back to Slave