#NEWLINE# def _copy_hive_site( self , cluster_context ) : #NEWLINE# #INDENT# if ( not self . _hive ( cluster_context ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# hive_conf = self . _hive ( cluster_context ) . conf_dir ( cluster_context ) #NEWLINE# with cluster_context . get_instance ( hive . HIVE_SERVER_2 ) . remote ( ) as h : #NEWLINE# #INDENT# with cluster_context . get_instance ( SPARK_HISTORY_SERVER ) . remote ( ) as s : #NEWLINE# #INDENT# mfs . exchange ( h , s , ( hive_conf + '/hive-site.xml' ) , ( self . conf_dir ( cluster_context ) + '/hive-site.xml' ) , hdfs_user = 'mapr' )