You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Lefty Leverenz (JIRA)" <ji...@apache.org> on 2016/10/01 07:13:20 UTC

[jira] [Commented] (HIVE-14100) Adding a new logged_in_user() UDF which returns the user provided when connecting

    [ https://issues.apache.org/jira/browse/HIVE-14100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15538069#comment-15538069 ] 

Lefty Leverenz commented on HIVE-14100:
---------------------------------------

Doc note:  The new UDF logged_in_user() needs to be documented in the wiki for release 2.2.0.

* [Hive Operators and UDFs -- Misc. Functions | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-Misc.Functions]

Added a TODOC2.2 label.

> Adding a new logged_in_user() UDF which returns the user provided when connecting
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-14100
>                 URL: https://issues.apache.org/jira/browse/HIVE-14100
>             Project: Hive
>          Issue Type: Bug
>          Components: Authentication, Beeline
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>            Priority: Minor
>              Labels: TODOC2.2
>             Fix For: 2.2.0
>
>         Attachments: HIVE-14100.2.patch, HIVE-14100.2.patch, HIVE-14100.2.patch, HIVE-14100.patch
>
>
> There is an existing current_user() UDF which returns the user provided by the configured {{hive.security.authenticator.manager}}. This is often the same as the user provided on connection, but some cases, like HadoopDefaultAuthenticator this could be different.
> Some cases we need the logged in user independently of the configured authenticator, so a new UDF is created which provides this - returns the {{SessionState.get().getUserName()}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)