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

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

    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

              People

              • Assignee:
                pvary Peter Vary
                Reporter:
                pvary Peter Vary
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: