#NEWLINE# def _set_zk_quorum( cluster , blueprint , conf_type ) : #NEWLINE# #INDENT# zk_instances = utils . get_instances ( cluster , p_common . ZOOKEEPER_SERVER ) #NEWLINE# value = ',' . join ( [ ( '%s:2181' % i . fqdn ( ) ) for i in zk_instances ] ) #NEWLINE# if ( conf_type == CORE_SITE ) : #NEWLINE# #INDENT# _find_core_site ( blueprint ) [ 'ha.zookeeper.quorum' ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( conf_type == YARN_SITE ) : #NEWLINE# #INDENT# _find_yarn_site ( blueprint ) [ 'hadoop.registry.zk.quorum' ] = value #NEWLINE# #UNINDENT# #UNINDENT# return blueprint