#NEWLINE# def register_service_urls( self , cluster_spec , url_info , cluster ) : #NEWLINE# #INDENT# resourcemgr_ip = cluster_spec . determine_component_hosts ( 'RESOURCEMANAGER' ) . pop ( ) . management_ip #NEWLINE# ui_port = self . _get_port_from_cluster_spec ( cluster_spec , 'yarn-site' , 'yarn.resourcemanager.webapp.address' ) #NEWLINE# rm_port = self . _get_port_from_cluster_spec ( cluster_spec , 'yarn-site' , 'yarn.resourcemanager.address' ) #NEWLINE# url_info [ 'Yarn' ] = { #NEWLINE# #INDENT# 'Web UI' : ( 'http://%s:%s' % ( resourcemgr_ip , ui_port ) ) , #NEWLINE# 'ResourceManager' : ( '%s:%s' % ( resourcemgr_ip , rm_port ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# return url_info