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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • Authentication, Beeline
    • 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.2.patch
          7 kB
          Prasanth Jayachandran
        2. HIVE-14100.2.patch
          7 kB
          Prasanth Jayachandran
        3. HIVE-14100.2.patch
          7 kB
          Peter Vary
        4. HIVE-14100.patch
          6 kB
          Peter Vary

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: