#NEWLINE# def get_config_files( self , cluster_context , configs , instance = None ) : #NEWLINE# #INDENT# env = bcf . EnvironmentConfig ( 'spark-env.sh' ) #NEWLINE# env . remote_path = self . conf_dir ( cluster_context ) #NEWLINE# if cluster_context : #NEWLINE# #INDENT# env . fetch ( instance ) #NEWLINE# #UNINDENT# env . load_properties ( configs ) #NEWLINE# env . add_properties ( self . _get_spark_ha_props ( cluster_context ) ) #NEWLINE# env . add_property ( 'SPARK_WORKER_DIR' , '/tmp/spark' ) #NEWLINE# return [ env ]