Hive
  1. Hive
  2. HIVE-255

User name is not propagated correctly when a hive server or a web client is issuing hive queries.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3.0
    • Component/s: Clients
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      HIVE-255. Propagate user name from hadoop.job.ugi to Hive metastore. (Prasad Chakka via zshao)
      Show
      HIVE-255 . Propagate user name from hadoop.job.ugi to Hive metastore. (Prasad Chakka via zshao)

      Description

      Hive should use the parameter set in hadoop.job.ugi config value instead of user.name which gets overwritten during job submission. Otherwise clients have to set both user.name and hadoop.job.ugi which is clunky.

      1. hive-255.patch
        3 kB
        Prasad Chakka
      2. hive-255.patch
        2 kB
        Prasad Chakka

        Activity

        Hide
        Prasad Chakka added a comment -

        also removed some templated warnings in HiveConf.java

        Show
        Prasad Chakka added a comment - also removed some templated warnings in HiveConf.java
        Hide
        Prasad Chakka added a comment -

        zheng, can you please review and commit?

        Show
        Prasad Chakka added a comment - zheng, can you please review and commit?
        Hide
        Zheng Shao added a comment -

        Committed revision 738406. Thanks Prasad!

        Show
        Zheng Shao added a comment - Committed revision 738406. Thanks Prasad!
        Hide
        Zheng Shao added a comment -

        Everything is done with this jira. Assigned back to the author for computing stats in the future.

        Show
        Zheng Shao added a comment - Everything is done with this jira. Assigned back to the author for computing stats in the future.
        Hide
        Prasad Chakka added a comment -

        user name is not getting propagated unless the hadoop.job.ugi information is supplied from hive command line. set hadoop.job.ugi is not having an effect because later calls to getUGI information use cached info instead of new.

        Show
        Prasad Chakka added a comment - user name is not getting propagated unless the hadoop.job.ugi information is supplied from hive command line. set hadoop.job.ugi is not having an effect because later calls to getUGI information use cached info instead of new.
        Hide
        Prasad Chakka added a comment -

        changed user for create table and alter table as well. Not it return error if user information is not available.

        Show
        Prasad Chakka added a comment - changed user for create table and alter table as well. Not it return error if user information is not available.
        Hide
        Zheng Shao added a comment -

        Committed revision 740941. for trunk
        Committed revision 740942. for branch 0.2.

        Thanks Prasad.

        Show
        Zheng Shao added a comment - Committed revision 740941. for trunk Committed revision 740942. for branch 0.2. Thanks Prasad.

          People

          • Assignee:
            Prasad Chakka
            Reporter:
            Prasad Chakka
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development