Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24176

user_permission '.*' command failed to show all table permissions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.3.0, 2.2.5
    • shell
    • None

    Description

      When we grant somebody global permission, then we use '.*' as the argument of user_permission to show all table permissions, the following exception occurred:

      hbase(main):001:0>  grant 'user3', 'RW'
      Took 0.4144 seconds                                                                                                                                                                            
      hbase(main):002:0> user_permission 
      User                                             Namespace,Table,Family,Qualifier:Permission                                                                                                   
       user2                                           ,,,: [Permission: actions=READ,WRITE]                                                                                                         
       user3                                           ,,,: [Permission: actions=READ,WRITE]                                                                                                         
       hbaseadmin                                      ,,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]                                                                                       
      3 row(s)
      Took 0.0445 seconds                                                                                                                                                                            
      hbase(main):003:0> user_permission '.*'
      User                                             Namespace,Table,Family,Qualifier:Permission                                                                                                   
       user1                                           default,t1,,: [Permission: actions=READ,WRITE]                                                                                                
       hbaseadmin                                      default,t1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]                                                                              ERROR: failed to coerce org.apache.hadoop.hbase.security.access.GlobalPermission to org.apache.hadoop.hbase.security.access.TablePermissionFor usage try 'help "user_permission"'Took 0.0940 seconds 
      

      Attachments

        Issue Links

          Activity

            People

              songxincun song XinCun
              songxincun song XinCun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: