Beispiel #1
0
def get_remote_log_files(dest_path):
    remote_server_log = lookup_server_log_file(env.host)
    _LOGGER.debug('Logs to be archived on host ' + env.host + ': ' + remote_server_log)
    get_files(remote_server_log + '*', dest_path)

    remote_launcher_log = lookup_launcher_log_file(env.host)
    _LOGGER.debug('LOG directory to be archived on host ' + env.host + ': ' + remote_launcher_log)
    get_files(remote_launcher_log + '*', dest_path)
Beispiel #2
0
def get_remote_log_files(dest_path):
    remote_server_log = lookup_server_log_file(env.host)
    _LOGGER.debug('Logs to be archived on host ' + env.host + ': ' + remote_server_log)
    get_files(remote_server_log + '*', dest_path)

    remote_launcher_log = lookup_launcher_log_file(env.host)
    _LOGGER.debug('LOG directory to be archived on host ' + env.host + ': ' + remote_launcher_log)
    get_files(remote_launcher_log + '*', dest_path)
Beispiel #3
0
def check_status_for_control_commands():
    client = PrestoClient(env.host, env.user)
    print('Waiting to make sure we can connect to the Presto server on %s, '
          'please wait. This check will time out after %d minutes if the '
          'server does not respond.' % (env.host, (RETRY_TIMEOUT / 60)))
    if check_server_status(client):
        print('Server started successfully on: ' + env.host)
    else:
        warn('Server failed to start on: ' + env.host + '\nPlease check ' +
             lookup_server_log_file(env.host) + ' and ' +
             lookup_launcher_log_file(env.host))
Beispiel #4
0
def check_status_for_control_commands():
    print('Waiting to make sure we can connect to the Presto server on %s, '
          'please wait. This check will time out after %d minutes if the '
          'server does not respond.' % (env.host, (RETRY_TIMEOUT / 60)))
    if check_server_status():
        print('Server started successfully on: ' + env.host)
    else:
        warn(
            'Could not verify server status for: ' + env.host +
            '\nThis could mean that the server failed to start or that there was no coordinator or worker up. '
            'Please check ' + lookup_server_log_file(env.host) + ' and ' +
            lookup_launcher_log_file(env.host))
Beispiel #5
0
def check_status_for_control_commands():
    client = PrestoClient(env.host, env.user)
    print('Waiting to make sure we can connect to the Presto server on %s, '
          'please wait. This check will time out after %d minutes if the '
          'server does not respond.'
          % (env.host, (RETRY_TIMEOUT / 60)))
    if check_server_status(client):
        print('Server started successfully on: ' + env.host)
    else:
        warn('Server failed to start on: ' + env.host
             + '\nPlease check ' + lookup_server_log_file(env.host) + ' and ' +
             lookup_launcher_log_file(env.host))
Beispiel #6
0
def check_status_for_control_commands():
    print('Waiting to make sure we can connect to the Presto server on %s, '
          'please wait. This check will time out after %d minutes if the '
          'server does not respond.'
          % (env.host, (RETRY_TIMEOUT / 60)))
    if check_server_status():
        print('Server started successfully on: ' + env.host)
    else:
        warn('Could not verify server status for: ' + env.host +
             '\nThis could mean that the server failed to start or that there was no coordinator or worker up. '
             'Please check ' + lookup_server_log_file(env.host) + ' and ' +
             lookup_launcher_log_file(env.host))