#NEWLINE# def get_config_files( self , cluster_context , configs , instance = None ) : #NEWLINE# #INDENT# template = 'plugins/mapr/services/hue/resources/hue_%s.template' #NEWLINE# hue_ini = bcf . TemplateFile ( 'hue.ini' ) #NEWLINE# hue_ini . remote_path = self . conf_dir ( cluster_context ) #NEWLINE# hue_ini . parse ( files . get_file_text ( ( template % self . version ) ) ) #NEWLINE# hue_ini . add_properties ( self . _get_hue_ini_props ( cluster_context ) ) #NEWLINE# hue_ini . add_property ( 'thrift_version' , configs [ self . THRIFT_VERSION . name ] ) #NEWLINE# hue_sh_template = 'plugins/mapr/services/hue/resources/hue_sh_%s.template' #NEWLINE# hue_sh = bcf . TemplateFile ( 'hue.sh' ) #NEWLINE# hue_sh . remote_path = ( self . home_dir ( cluster_context ) + '/bin' ) #NEWLINE# hue_sh . parse ( files . get_file_text ( ( hue_sh_template % self . version ) ) ) #NEWLINE# hue_sh . add_property ( 'hadoop_version' , cluster_context . hadoop_version ) #NEWLINE# hue_sh . mode = 777 #NEWLINE# hue_instances = cluster_context . get_instances ( HUE ) #NEWLINE# for instance in hue_sh_template : #NEWLINE# #INDENT# if ( instance not in cluster_context . changed_instances ( ) ) : #NEWLINE# #INDENT# cluster_context . should_be_restarted [ self ] += [ instance ] #NEWLINE# #UNINDENT# #UNINDENT# return [ hue_ini , hue_sh ]