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

Add explain authorize for checking privileges

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.14.0
    • Authorization
    • None

    Description

      For easy checking of need privileges for a query,

      explain authorize select * from src join srcpart
      INPUTS: 
        default@srcpart
        default@srcpart@ds=2008-04-08/hr=11
        default@srcpart@ds=2008-04-08/hr=12
        default@srcpart@ds=2008-04-09/hr=11
        default@srcpart@ds=2008-04-09/hr=12
        default@src
      OUTPUTS: 
        file:/home/navis/apache/oss-hive/itests/qtest/target/tmp/localscratchdir/hive_2013-12-04_21-57-53_748_5323811717799107868-1/-mr-10000
      CURRENT_USER: 
        hive_test_user
      OPERATION: 
        QUERY
      AUTHORIZATION_FAILURES: 
        No privilege 'Select' found for inputs { database:default, table:srcpart, columnName:key}
        No privilege 'Select' found for inputs { database:default, table:src, columnName:key}
        No privilege 'Select' found for inputs { database:default, table:src, columnName:key}
      

      Hopefully good for debugging of authorization, which is in progress on HIVE-5837.

      Attachments

        1. HIVE-5961.1.patch.txt
          29 kB
          Navis Ryu
        2. HIVE-5961.2.patch.txt
          30 kB
          Navis Ryu
        3. HIVE-5961.3.patch.txt
          30 kB
          Navis Ryu
        4. HIVE-5961.4.patch.txt
          32 kB
          Navis Ryu
        5. HIVE-5961.5.patch.txt
          33 kB
          Navis Ryu
        6. HIVE-5961.6.patch.txt
          35 kB
          Navis Ryu

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            navis Navis Ryu Assign to me
            navis Navis Ryu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment