there is just one consumer thread running on one single server,and kafka
partition is 10,So when I create 10 rivers in each of servers, all of 10
consumer should run in server
But just master node consume messages from kafka...
then I execute
curl -XGET 'localhost:9200/_river/es/_status'
the resut is :
{"_index":"_river","_type":"es","_id":"_status","_version":1,"exists":true,
"_source" :
{"ok":true,"node":{"id":"i9C1lDB9RMKdXw-6osH1Yg","name":"Frey","transport_address":"inet[/10.165.4.160:9300]"}}}
10.165.4.160 is master ip.
how can I create 10 rive(consumer) in this cluster
By design, there's only one river instance running per cluster.
There is a replica of the river in case of node failure: another node will relaunch the river. But the replica is not running.
That said, you could ask for an option in rivers to have more than one instance running in the cluster.
I did not look at the river source code and don't know yet if we can do it or not. Open an issue?
then I execute
curl -XGET 'localhost:9200/_river/es/_status'
the resut is :
{"_index":"_river","_type":"es","_id":"_status","_version":1,"exists":true, "_source" : {"ok":true,"node":{"id":"i9C1lDB9RMKdXw-6osH1Yg","name":"Frey","transport_address":"inet[/10.165.4.160:9300]"}}}
10.165.4.160 is master ip.
how can I create 10 rive(consumer) in this cluster
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.