Example #1
0
def reinstall_eggo(region, stack_name, fork, branch):
    """DEBUG: reinstall a specific version of eggo"""
    ec2_conn = director.create_ec2_connection(region)
    hosts = [director.get_master_instance(ec2_conn, stack_name).ip_address]
    execute(
        director.install_eggo, hosts=hosts, fork=fork, branch=branch,
        reinstall=True)
Example #2
0
def get_director_log(region, stack_name):
    """DEBUG: get the Director application log from the launcher instance"""
    ec2_conn = director.create_ec2_connection(region)
    hosts = [director.get_launcher_instance(ec2_conn, stack_name).ip_address]
    execute(
        get, hosts=hosts, local_path='application.log',
        remote_path='/home/ec2-user/.cloudera-director/logs/application.log')