@tornado.gen.coroutine<EOL>def get_scheduler_location(cluster, environ, topology, role=None):
params = dict(cluster=cluster, environ=environ, topology=topology)<EOL>if role is not None:<EOL><INDENT>params['<STR_LIT>'] = role<EOL><DEDENT>request_url = tornado.httputil.url_concat(<EOL>create_url(SCHEDULER_LOCATION_URL_FMT), params)<EOL>raise tornado.gen.Return((yield fetch_url_as_json(request_url)))<EOL>
Get the scheduler location of a topology in a cluster from tracker
:param cluster:
:param environ:
:param topology:
:param role:
:return: