#NEWLINE# def _set_default_fs( cluster , blueprint , ha_type ) : #NEWLINE# #INDENT# if ( ha_type == p_common . NAMENODE_HA ) : #NEWLINE# #INDENT# _find_core_site ( blueprint ) [ 'fs.defaultFS' ] = 'hdfs://hdfs-ha' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ha_type == p_common . RESOURCEMANAGER_HA ) : #NEWLINE# #INDENT# nn_instance = utils . get_instances ( ha_type , p_common . NAMENODE ) [ 0 ] #NEWLINE# _find_core_site ( blueprint ) [ 'fs.defaultFS' ] = ( 'hdfs://%s:8020' % nn_instance . fqdn ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return blueprint