Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Num TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Str NameLoad NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Str NameLoad NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Return SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call NameLoad Call NameLoad Str Str Str body Assign NameStore SubscriptLoad Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Index NameLoad If BoolOpOr Call NameLoad NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A logging fabric.context_managers settings hide fabric.operations sudo fabric.tasks execute prestoadmin.util.exception ConfigurationError prestoadmin.util.constants DEFAULT_PRESTO_LAUNCHER_LOG_FILE DEFAULT_PRESTO_SERVER_LOG_FILE REMOTE_CONF_DIR N/A prestoadmin.util.validators N/A _LOGGER N/A N/A logging getLogger __name__ N/A NODE_CONFIG_FILE N/A REMOTE_CONF_DIR /node.properties N/A GENERAL_CONFIG_FILE N/A REMOTE_CONF_DIR /config.properties lookup_port N/A N/A host N/A N/A N/A 
    Get the http port from config.properties http-server.http.port property
    if available.
    If the property is missing return default port 8080.
    If the file is missing or cannot parse the port number,
    throw ConfigurationError
    :param host:
    :return:
     N/A port N/A lookup_in_config http-server.http.port GENERAL_CONFIG_FILE host N/A N/A port N/A N/A N/A N/A _LOGGER info Could not find property http-server.http.port.Defaulting to 8080. N/A 8080 N/A N/A N/A port N/A N/A N/A port split = 1 N/A 1 N/A port N/A N/A N/A N/A prestoadmin util validators validate_port port N/A N/A N/A _LOGGER info N/A N/A N/A Looked up port  N/A str port  on host  host N/A port N/A N/A N/A ConfigurationError N/A e N/A N/A N/A ConfigurationError N/A N/A N/A N/A e message  for property http-server.http.port on host  host . N/A lookup_server_log_file N/A N/A host N/A N/A N/A N/A N/A N/A lookup_string_config node.server-log-file NODE_CONFIG_FILE host DEFAULT_PRESTO_SERVER_LOG_FILE N/A N/A N/A N/A DEFAULT_PRESTO_SERVER_LOG_FILE N/A lookup_launcher_log_file N/A N/A host N/A N/A N/A N/A N/A N/A lookup_string_config node.launcher-log-file NODE_CONFIG_FILE host DEFAULT_PRESTO_LAUNCHER_LOG_FILE N/A N/A N/A N/A DEFAULT_PRESTO_LAUNCHER_LOG_FILE N/A lookup_string_config N/A N/A config_value config_file host default N/A N/A N/A value N/A lookup_in_config config_value config_file host N/A value N/A N/A N/A N/A N/A value split = 1 N/A 1 N/A N/A default N/A lookup_in_config N/A N/A config_key config_file host N/A N/A N/A N/A settings N/A hide stdout warnings aborts N/A N/A config_value N/A N/A execute sudo N/A grep %s= %s N/A config_key config_file user presto group presto warn_only True host host N/A host N/A N/A N/A isinstance config_value Exception N/A N/A config_value return_code 2 N/A N/A N/A ConfigurationError N/A Configuration file %s does not exist on host %s N/A config_file host N/A config_value N/A