Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # dev >> ConsoleProducer sync option


Copy link to this message
-
ConsoleProducer sync option
>From the printed usage pattern --> "--sync
If set message send requests to the
                                          brokers are synchronously, one at
a
                                          time as they arrive. "

seems to imply that the ConsoleProducer by default is sending messages to
the ConsoleConsumer in an async mode. Ie If you set the "--sync 1" then the
messages get set one at a time.

However default seems to be sync --> from the code
        props.put("producer.type", if(async) "async" else "sync")
Is this a bug?

Regards
Milind
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB