Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14100

Adding a new logged_in_user() UDF which returns the user provided when connecting

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: Authentication, Beeline
    • Labels:
      None

      Description

      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().

        Attachments

        1. HIVE-14100.patch
          6 kB
          Peter Vary
        2. HIVE-14100.2.patch
          7 kB
          Peter Vary
        3. HIVE-14100.2.patch
          7 kB
          Prasanth Jayachandran
        4. HIVE-14100.2.patch
          7 kB
          Prasanth Jayachandran

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment