You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2021/07/08 00:41:00 UTC

[jira] [Created] (IMPALA-10779) Print the username closing a session or cancelling a query from the WebUI

Quanlong Huang created IMPALA-10779:
---------------------------------------

             Summary: 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


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)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org