You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Fucun Chu (Jira)" <ji...@apache.org> on 2021/07/30 15:35:00 UTC
[jira] [Resolved] (IMPALA-10779) Print the username closing a
session or cancelling a query from the WebUI
[ https://issues.apache.org/jira/browse/IMPALA-10779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fucun Chu resolved IMPALA-10779.
--------------------------------
Fix Version/s: Impala 4.1.0
Resolution: Fixed
> Print the username closing a session or cancelling a query from the WebUI
> -------------------------------------------------------------------------
>
> Key: IMPALA-10779
> URL: https://issues.apache.org/jira/browse/IMPALA-10779
> Project: IMPALA
> Issue Type: Improvement
> Reporter: Quanlong Huang
> Assignee: Fucun Chu
> Priority: Major
> Fix For: Impala 4.1.0
>
>
> IMPALA-9182 prints the socket address of the client closing a session or cancelling a query from the WebUI. There is a 'remote_user' field in {{sq_request_info}}. We may be able to print the username when auth is enabled.
> {code:cpp}
> // This structure contains information about the HTTP request.
> struct sq_request_info {
> const char *request_method; // "GET", "POST", etc
> const char *uri; // URL-decoded URI
> const char *http_version; // E.g. "1.0", "1.1"
> const char *query_string; // URL part after '?', not including '?', or NULL
> const char *remote_user; // Authenticated user, or NULL if no auth used
> long remote_ip; // Client's IP address
> int remote_port; // Client's port
> int is_ssl; // 1 if SSL-ed, 0 if not
> void *user_data; // User data pointer passed to sq_start()
> void *conn_data; // Connection-specific user data
> int num_headers; // Number of HTTP headers
> struct sq_header {
> const char *name; // HTTP header name
> const char *value; // HTTP header value
> } http_headers[64]; // Maximum 64 headers
> };
> {code}
> https://github.com/apache/impala/blob/59d32853ee42886ae683aac95a8be7f9c89b8eb7/be/src/thirdparty/squeasel/squeasel.h#L77
--
This message was sent by Atlassian Jira
(v8.3.4#803005)