Exemple #1
0
    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')
Exemple #2
0
 def install(self, env):
     self.install_packages(env)
     install_hadoop()
Exemple #3
0
 def install(self, env):
     self.install_packages(env)
     install_hadoop()
     self.configure(env)
Exemple #4
0
 def pre_upgrade_restart(self, env, upgrade_type=None):
     install_hadoop()
Exemple #5
0
 def install(self, env):
     import params
     self.install_packages(env)
     install_hadoop()
     self.configure(env)