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

atlas_hbase_setup.rb scripts is executed only in secure or ranger enabled cluster. It is not executed on unsecure/simple cluster.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • trunk
    • trunk
    • ambari-agent
    • None

    Description

      atlas_hbase_setup.rb scripts is executed only in secure or ranger enabled cluster. It is not executed on unsecure/simple cluster, Is this intentional?

      we need to create the hbase table required for atlas in unsecure cluster as well.

      Reference: https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/ATLAS/0.7.0.3.0/package/scripts/metadata_server.py#L93

            if check_stack_feature(StackFeature.ATLAS_HBASE_SETUP, effective_version):
              if params.security_enabled and params.has_hbase_master:
                Execute(secure_atlas_hbase_setup_command,
                        tries = 5,
                        try_sleep = 10,
                        user=params.hbase_user
                )
              elif params.enable_ranger_hbase and not params.security_enabled:
                Execute(atlas_hbase_setup_command,
                        tries = 5,
                        try_sleep = 10,
                        user=params.hbase_user
                )
      

      The above condition should be

            if check_stack_feature(StackFeature.ATLAS_HBASE_SETUP, effective_version):
              if params.security_enabled and params.has_hbase_master:
                Execute(secure_atlas_hbase_setup_command,
                        tries = 5,
                        try_sleep = 10,
                        user=params.hbase_user
                )
              elif params.enable_ranger_hbase or not params.security_enabled:
                Execute(atlas_hbase_setup_command,
                        tries = 5,
                        try_sleep = 10,
                        user=params.hbase_user
                )
      

      Attachments

        1. AMBARI-21448.patch
          1 kB
          Ayub Pathan

        Activity

          People

            ayubpathan Ayub Pathan
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: