Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Import alias identifier Import alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad Print Str Expr Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Print BinOpAdd Str NameLoad decorator_list NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad BinOpAdd NameLoad Str NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad BinOpAdd NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Return BinOpMod Str Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd BinOpAdd Str NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Print BinOpAdd Str NameLoad decorator_list NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad If UnaryOpNot CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If CompareNotIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Print BinOpAdd Str NameLoad decorator_list NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad body Expr Call NameLoad BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call NameLoad NameLoad body Expr Call NameLoad BinOpAdd Str NameLoad Expr Call NameLoad NameLoad BinOpAdd BinOpAdd Str Call NameLoad Str Expr Call NameLoad NameLoad BinOpAdd BinOpAdd Str Call NameLoad Str Expr Call NameLoad NameLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad BinOpAdd BinOpAdd Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body With Call NameLoad Call NameLoad Str Str keyword NameLoad body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body With Call NameLoad Call NameLoad Str Str keyword NameLoad body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return NameLoad decorator_list
N/A N/A 
Module for gathering various debug information for incident reporting
using presto-admin
 N/A logging N/A json N/A shutil N/A tarfile N/A requests fabric.contrib.files exists append fabric.context_managers settings hide fabric.operations os get run fabric.tasks execute fabric.api env runs_once task fabric.utils abort warn prestoadmin.prestoclient PrestoClient prestoadmin.server get_presto_version get_connector_info_from prestoadmin.util.base_config requires_config prestoadmin.util.filesystem ensure_directory_exists prestoadmin.util.remote_config_util lookup_server_log_file lookup_launcher_log_file lookup_port prestoadmin.standalone.config StandaloneConfig N/A prestoadmin.util.fabricapi fabricapi N/A prestoadmin util.constants PRESTOADMIN_LOG_DIR N/A TMP_PRESTO_DEBUG /tmp/presto-debug/ N/A OUTPUT_FILENAME_FOR_LOGS /tmp/presto-debug-logs.tar.bz2 N/A OUTPUT_FILENAME_FOR_SYS_INFO /tmp/presto-debug-sysinfo.tar.bz2 N/A PRESTOADMIN_LOG_NAME presto-admin.log N/A _LOGGER N/A N/A logging getLogger __name__ N/A QUERY_REQUEST_EXT v1/query/ N/A NODES_REQUEST_EXT v1/node N/A __all__ N/A logs query_info system_info logs N/A N/A N/A N/A N/A 
    Gather all the server logs and presto-admin log and create a tar file.
     N/A downloaded_logs_location N/A N/A N/A os path join TMP_PRESTO_DEBUG logs N/A N/A ensure_directory_exists downloaded_logs_location N/A Downloading logs from all the nodes... N/A N/A execute get_remote_log_files downloaded_logs_location roles N/A env roles N/A N/A copy_admin_log downloaded_logs_location N/A N/A make_tarfile OUTPUT_FILENAME_FOR_LOGS downloaded_logs_location N/A N/A logs archive created:  OUTPUT_FILENAME_FOR_LOGS N/A task runs_once N/A requires_config StandaloneConfig copy_admin_log N/A N/A log_folder N/A N/A N/A N/A N/A shutil copy N/A N/A N/A os path join PRESTOADMIN_LOG_DIR PRESTOADMIN_LOG_NAME log_folder N/A make_tarfile N/A N/A output_filename source_dir N/A N/A N/A tar N/A N/A tarfile open output_filename w:bz2 N/A N/A N/A N/A N/A tar add source_dir arcname N/A N/A N/A os path basename source_dir N/A N/A N/A N/A tar close N/A get_remote_log_files N/A N/A dest_path N/A N/A N/A remote_server_log N/A lookup_server_log_file N/A env host N/A N/A N/A _LOGGER debug N/A N/A N/A Logs to be archived on host  N/A env host :  remote_server_log N/A N/A get_files N/A remote_server_log * dest_path N/A remote_launcher_log N/A lookup_launcher_log_file N/A env host N/A N/A N/A _LOGGER debug N/A N/A N/A LOG directory to be archived on host  N/A env host :  remote_launcher_log N/A N/A get_files N/A remote_launcher_log * dest_path N/A get_files N/A N/A remote_path local_path N/A N/A N/A path_with_host_name N/A N/A N/A os path join local_path N/A env host N/A N/A N/A N/A N/A os path exists path_with_host_name N/A N/A N/A N/A os makedirs path_with_host_name N/A N/A N/A _LOGGER debug N/A local path used  path_with_host_name N/A N/A N/A N/A get remote_path path_with_host_name True N/A N/A N/A SystemExit N/A N/A N/A warn N/A N/A N/A remote path  remote_path  not found on  N/A env host N/A request_url N/A N/A url_extension N/A N/A N/A host N/A env host N/A port N/A lookup_port host N/A N/A http://%(host)s:%(port)i/%(url_ext)s N/A host port url_ext host port url_extension N/A query_info N/A N/A query_id N/A N/A N/A 
    Gather information about the query identified by the given
    query_id and store that in a JSON file.

    Parameters:
        query_id - id of the query for which info has to be gathered
     N/A N/A N/A env host N/A N/A fabricapi get_coordinator_role N/A N/A N/A err_msg Unable to retrieve information. Please check that the query_id is correct, or check that server is up with command: server status N/A req N/A get_request N/A request_url N/A QUERY_REQUEST_EXT query_id err_msg N/A query_info_file_name N/A N/A N/A os path join TMP_PRESTO_DEBUG N/A N/A query_info_ query_id .json N/A N/A N/A N/A N/A os path exists TMP_PRESTO_DEBUG N/A N/A N/A N/A os mkdir TMP_PRESTO_DEBUG N/A N/A open query_info_file_name w out_file N/A N/A N/A N/A out_file write N/A N/A json dumps N/A N/A req json indent 4 N/A N/A Gathered query information in file:  query_info_file_name N/A task N/A requires_config StandaloneConfig get_request N/A N/A url err_msg N/A N/A N/A N/A N/A req N/A N/A requests get url N/A N/A N/A N/A requests ConnectionError N/A N/A N/A abort err_msg N/A N/A N/A N/A req status_code N/A N/A requests codes ok N/A N/A N/A abort err_msg N/A req N/A system_info N/A N/A N/A N/A N/A 
    Gather system information like nodes in the system, presto
    version, presto-admin version, os version etc.
     N/A N/A N/A env host N/A N/A fabricapi get_coordinator_role N/A N/A N/A err_msg Unable to access node information. Please check that server is up with command: server status N/A req N/A get_request N/A request_url NODES_REQUEST_EXT err_msg N/A N/A N/A N/A N/A os path exists TMP_PRESTO_DEBUG N/A N/A N/A N/A os mkdir TMP_PRESTO_DEBUG N/A downloaded_sys_info_loc N/A N/A N/A os path join TMP_PRESTO_DEBUG sysinfo N/A node_info_file_name N/A N/A N/A os path join downloaded_sys_info_loc node_info.json N/A N/A N/A N/A N/A os path exists downloaded_sys_info_loc N/A N/A N/A N/A os mkdir downloaded_sys_info_loc N/A N/A open node_info_file_name w out_file N/A N/A N/A N/A out_file write N/A N/A json dumps N/A N/A req json indent 4 N/A N/A N/A _LOGGER debug N/A Gathered node information in file:  node_info_file_name N/A conn_file_name N/A N/A N/A os path join downloaded_sys_info_loc connector_info.txt N/A client N/A PrestoClient N/A env host N/A env user N/A conn_info N/A get_connector_info_from client N/A N/A open conn_file_name w out_file N/A N/A N/A N/A out_file write N/A conn_info N/A N/A N/A _LOGGER debug N/A Gathered connector information in file:  conn_file_name N/A N/A execute get_system_info downloaded_sys_info_loc roles N/A env roles N/A N/A make_tarfile OUTPUT_FILENAME_FOR_SYS_INFO downloaded_sys_info_loc N/A N/A System info archive created:  OUTPUT_FILENAME_FOR_SYS_INFO N/A task N/A requires_config StandaloneConfig get_system_info N/A N/A download_location N/A N/A N/A N/A N/A exists TMP_PRESTO_DEBUG N/A N/A N/A run N/A mkdir  TMP_PRESTO_DEBUG N/A version_file_name N/A N/A N/A os path join TMP_PRESTO_DEBUG version_info.txt N/A N/A exists version_file_name N/A N/A N/A run N/A rm -f  version_file_name N/A N/A append version_file_name N/A N/A platform information :  N/A get_platform_information N/A N/A append version_file_name N/A N/A Java version:  N/A get_java_version N/A N/A append version_file_name N/A N/A Presto-admin version:  N/A prestoadmin __version__ N/A N/A append version_file_name N/A N/A Presto server version:  N/A get_presto_version N/A N/A N/A _LOGGER debug N/A Gathered version information in file:  version_file_name N/A N/A get_files version_file_name download_location N/A get_platform_information N/A N/A N/A N/A N/A N/A settings N/A hide warnings stdout warn_only True N/A N/A platform_info N/A run uname -a N/A N/A N/A _LOGGER debug N/A platform info:  platform_info N/A platform_info N/A get_java_version N/A N/A N/A N/A N/A N/A settings N/A hide warnings stdout warn_only True N/A N/A version N/A run java -version N/A N/A N/A _LOGGER debug N/A java version:  version N/A version N/A