#NEWLINE# def prepare_cmd( self , setup , node_name ) : #NEWLINE# #INDENT# server_log_dir = ( '%s/server' % self . cfg . opts ( 'system' , 'track.setup.log.dir' ) ) #NEWLINE# self . cfg . add ( config . Scope . invocation , 'launcher' , 'candidate.log.dir' , server_log_dir ) #NEWLINE# processor_count = setup . candidate . processors #NEWLINE# cmd = [ 'bin/elasticsearch' , ( '-Ees.node.name=%s' % node_name ) ] #NEWLINE# if ( ( processor_count is not None ) and ( processor_count > 1 ) ) : #NEWLINE# #INDENT# cmd . append ( ( '-Ees.processors=%s' % processor_count ) ) #NEWLINE# #UNINDENT# cmd . append ( ( '-Ees.path.logs=%s' % server_log_dir ) ) #NEWLINE# logger . info ( ( 'ES launch: %s' % str ( cmd ) ) ) #NEWLINE# return cmd