Пример #1
0
    def __init__(self,
                 test_context,
                 num_zk,
                 num_brokers,
                 num_hadoop,
                 num_schema_registry,
                 num_rest,
                 hadoop_distro='cdh',
                 hadoop_version=2,
                 topics=None):

        super(CamusTest, self).__init__(test_context)
        self.num_zk = num_zk
        self.num_brokers = num_brokers
        self.num_hadoop = num_hadoop
        self.num_schema_registry = num_schema_registry
        self.num_rest = num_rest
        self.topics = topics
        self.hadoop_distro = hadoop_distro
        self.hadoop_version = hadoop_version

        self.zk = ZookeeperService(test_context, self.num_zk)
        self.kafka = KafkaService(test_context,
                                  self.num_brokers,
                                  self.zk,
                                  topics=self.topics)
        self.hadoop = create_hadoop_service(test_context, self.num_hadoop,
                                            self.hadoop_distro,
                                            self.hadoop_version)
        self.schema_registry = SchemaRegistryService(test_context,
                                                     self.num_schema_registry,
                                                     self.zk, self.kafka)
        self.rest = KafkaRestService(test_context, self.num_rest, self.zk,
                                     self.kafka, self.schema_registry)
Пример #2
0
    def __init__(self, test_context, num_hadoop, hadoop_distro='cdh', hadoop_version=2):
        super(HadoopTest, self).__init__(test_context)
        self.num_hadoop = num_hadoop

        self.hadoop = create_hadoop_service(
            test_context, num_hadoop,
            hadoop_distro, hadoop_version)
Пример #3
0
    def __init__(self, test_context, num_hadoop, hadoop_distro='cdh', hadoop_version=2):
        super(HadoopTest, self).__init__(test_context)
        self.num_hadoop = num_hadoop

        self.hadoop = create_hadoop_service(
            test_context, num_hadoop,
            hadoop_distro, hadoop_version)
Пример #4
0
    def __init__(self, test_context, num_zk, num_brokers, num_hadoop, num_schema_registry, num_rest,
                 hadoop_distro='cdh', hadoop_version=2, topics=None):

        super(CamusTest, self).__init__(test_context)
        self.num_zk = num_zk
        self.num_brokers = num_brokers
        self.num_hadoop = num_hadoop
        self.num_schema_registry = num_schema_registry
        self.num_rest = num_rest
        self.topics = topics
        self.hadoop_distro = hadoop_distro
        self.hadoop_version = hadoop_version

        self.zk = ZookeeperService(test_context, self.num_zk)
        self.kafka = KafkaService(test_context, self.num_brokers, self.zk, topics=self.topics)
        self.hadoop = create_hadoop_service(test_context, self.num_hadoop, self.hadoop_distro, self.hadoop_version)
        self.schema_registry = SchemaRegistryService(test_context, self.num_schema_registry, self.zk, self.kafka)
        self.rest = KafkaRestService(test_context, self.num_rest, self.zk, self.kafka, self.schema_registry)