예제 #1
0
 def test_run_consumer(self):
     _command = "kafka-run-class.sh Consumer --zookeeper lcoalhost"
     Kafka.run_consumer(name='Consumer', args={"--zookeeper": "lcoalhost"}, executor=mock_executor(expected_command=_command))
예제 #2
0
 def run(self):
     Kafka.run_consumer(
         name='kafka.consumer.ConsoleConsumer',
         args=[
             "--zookeeper sandbox.hortonworks.com:2181 --from-beginning --topic test123"
         ])
예제 #3
0
파일: test_kafka.py 프로젝트: epam/Merlin
 def run(self):
     Kafka.run_consumer(name='kafka.consumer.ConsoleConsumer', args=["--zookeeper sandbox.hortonworks.com:2181 --from-beginning --topic test123"])