@classmethod
    def _hbase_indexer_validation(cls, cluster):

        lhbi_count = cls._get_inst_count(cluster, 'HBASE_INDEXER')
        zk_count = cls._get_inst_count(cluster, 'ZOOKEEPER_SERVER')
        dn_count = cls._get_inst_count(cluster, 'HDFS_DATANODE')
        slr_count = cls._get_inst_count(cluster, 'SOLR_SERVER')
        hbm_count = cls._get_inst_count(cluster, 'HBASE_MASTER')

        if lhbi_count >= 1:
            if dn_count < 1:
                raise ex.RequiredServiceMissingException(
                    'HDFS_DATANODE', required_by='HBASE_INDEXER')
            if zk_count < 1:
                raise ex.RequiredServiceMissingException(
                    'ZOOKEEPER', required_by='HBASE_INDEXER')
            if slr_count < 1:
                raise ex.RequiredServiceMissingException(
                    'SOLR_SERVER', required_by='HBASE_INDEXER')
            if hbm_count < 1:
                raise ex.RequiredServiceMissingException(
                    'HBASE_MASTER', required_by='HBASE_INDEXER')
dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/v5_3_0/validation.py/ValidatorV530._hbase_indexer_validation/original