def add_slave_server(self):
master = self.args.config[<NUM_LIT:1>]<EOL>slave = self.args.add_slave<EOL>self.reset_server_env(slave, self.configure)<EOL>if self.prompt_check("<STR_LIT>"):<EOL><INDENT>self.update_source_list()<EOL>self.common_update_sys()<EOL><DEDENT>if self.prompt_check("<STR_LIT>"):<EOL><INDENT>self.java_install()<EOL>sudo('<STR_LIT>')<EOL><DEDENT>if not self.args.skip_master:<EOL><INDENT>if self.prompt_check("<STR_LIT>"):<EOL><INDENT>self.generate_ssh(master, self.args, self.configure)<EOL><DEDENT><DEDENT>if self.prompt_check("<STR_LIT>"):<EOL><INDENT>self.generate_ssh(slave, self.args, self.configure)<EOL>run('<STR_LIT>'.format(<EOL>self.configure[master]['<STR_LIT:user>'],<EOL>self.configure[master]['<STR_LIT:host>'],<EOL>slave<EOL>))<EOL>self.reset_server_env(master, self.configure)<EOL>run('<STR_LIT>')<EOL>run('<STR_LIT>'.format(<EOL>self.configure[slave]['<STR_LIT:user>'],<EOL>self.configure[slave]['<STR_LIT:host>']<EOL>))<EOL><DEDENT>if self.prompt_check("<STR_LIT>"):<EOL><INDENT>master = self.args.config[<NUM_LIT:1>]<EOL>slave = self.args.add_slave<EOL>if self.args.bigdata_app == '<STR_LIT>':<EOL><INDENT>self.add_spark_slave(master, slave, self.configure)<EOL><DEDENT><DEDENT>
添加slave服务器
:return: