mirror of https://github.com/apache/kafka.git
kafka-964; Default hadoop-producer configs to request.required.acks = 1; Patched by Swapnil Ghike; reviewed by Jun Rao
This commit is contained in:
parent
6b53c649e9
commit
c39d37e9dd
|
@ -49,9 +49,9 @@ public class KafkaOutputFormat<K, V> extends OutputFormat<K, V>
|
||||||
Map<String, String> cMap = new HashMap<String, String>();
|
Map<String, String> cMap = new HashMap<String, String>();
|
||||||
|
|
||||||
// default Hadoop producer configs
|
// default Hadoop producer configs
|
||||||
cMap.put("producer.type", "sync");
|
cMap.put("producer.type", "sync");
|
||||||
cMap.put("send.buffer.bytes", Integer.toString(64*1024));
|
cMap.put("compression.codec", Integer.toString(1));
|
||||||
cMap.put("compression.codec", Integer.toString(1));
|
cMap.put("request.required.acks", Integer.toString(1));
|
||||||
|
|
||||||
kafkaConfigMap = Collections.unmodifiableMap(cMap);
|
kafkaConfigMap = Collections.unmodifiableMap(cMap);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue