#NEWLINE# def register_service_urls( self , cluster_spec , url_info , cluster ) : #NEWLINE# #INDENT# historyserver_ip = cluster_spec . determine_component_hosts ( 'HISTORYSERVER' ) . pop ( ) . management_ip #NEWLINE# ui_port = self . _get_port_from_cluster_spec ( cluster_spec , 'mapred-site' , 'mapreduce.jobhistory.webapp.address' ) #NEWLINE# hs_port = self . _get_port_from_cluster_spec ( cluster_spec , 'mapred-site' , 'mapreduce.jobhistory.address' ) #NEWLINE# url_info [ 'MapReduce2' ] = { #NEWLINE# #INDENT# 'Web UI' : ( 'http://%s:%s' % ( historyserver_ip , ui_port ) ) , #NEWLINE# 'History Server' : ( '%s:%s' % ( historyserver_ip , hs_port ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# return url_info