Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16084

[RU] Hbase is losing table access permissions during upgrade.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.2.2
    • ambari-server
    • None

    Description

      So here's where we are:

      • However, after removing the above code, we never change the ranger configurations to reflect the proper value
      • To fix this, we need to fix the values on Ambari upgrade. When upgrading Ambari from 2.0, we'll need to do the following:
        • If Ranger is disabled; do nothing
        • If Ranger is enabled and the cluster's current stack is HDP 2.2, then set the master/region coprocessors to
          hbase_coprocessor_master_classes = "com.xasecure.authorization.hbase.XaSecureAuthorizationCoprocessor"
          hbase_coprocessor_regionserver_classes = "com.xasecure.authorization.hbase.XaSecureAuthorizationCoprocessor"
          hbase_coprocessor_region_classes = "org.apache.hadoop.hbase.security.token.TokenProvider,org.apache.hadoop.hbase.security.access.SecureBulkLoadEndpoint,com.xasecure.authorization.hbase.XaSecureAuthorizationCoprocessor"
          
        • If Ranger is enabled and the cluster's current stack is HDP 2.3, then set the master/region coprocessors to
          hbase_coprocessor_master_classes = "org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor "
          hbase_coprocessor_regionserver_classes = "org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor"
          hbase_coprocessor_region_classes = "org.apache.hadoop.hbase.security.token.TokenProvider,org.apache.hadoop.hbase.security.access.SecureBulkLoadEndpoint,org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor"
          

      Now HDP stack upgrades will work since we look for XaSecureAuthorizationCoprocessor and change it to RangerAuthorizationCoprocessor as needed.

      Attachments

        1. AMBARI-16084.patch
          15 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: