def pre_upgrade_restart(self, env, upgrade_type=None): install_hadoop() import params Execute( 'wget http://yum.example.com/hadoop/hdfs/tez.tar.gz -O /tmp/tez.tar.gz' ) copy_to_hdfs("tez", params.user_group, params.hdfs_user, custom_source_file='/tmp/tez.tar.gz', custom_dest_file='/apps/tez/tez.tar.gz') params.HdfsResource(None, action="execute") Execute('/bin/rm -f /tmp/tez.tar.gz') Execute( 'wget http://yum.example.com/hadoop/hdfs/slider.tar.gz -O /tmp/slider.tar.gz' ) copy_to_hdfs("slider", params.user_group, params.hdfs_user, custom_source_file='/tmp/slider.tar.gz', custom_dest_file='/apps/slider/slider.tar.gz') params.HdfsResource(None, action="execute") Execute('/bin/rm -f /tmp/slider.tar.gz')
def install(self, env): self.install_packages(env) install_hadoop()
def install(self, env): self.install_packages(env) install_hadoop() self.configure(env)
def pre_upgrade_restart(self, env, upgrade_type=None): install_hadoop()
def install(self, env): import params self.install_packages(env) install_hadoop() self.configure(env)