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

Basic table listings should use an unprivileged operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • shell
    • None

    Description

      From the shell "list" operation, we see the "user:namespace" table included in results. This is different from retrieving a tabling listing from the REST service, which omits that table.

      The reason appears to be that hbase shell "list" command calls the deprecated HBaseAdmin#getTableNames(String), which invokes HMaster#getTableNames. This implementation has different system table filtering logic from HMaster#getTableDescriptors. The latter is the call underlying the REST implementation.

      hbase(main):004:0> list
      TABLE                                                                                                                                                                                                     
      hbase:namespace                                                                                                                                                                                           
      1 row(s) in 0.0390 seconds
      
      => #<#<Class:0x16309ee1>:0x66f11de2>
      
      $ curl http://localhost:8080/
      $
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ndimiduk Nick Dimiduk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: