You want to sink data from a Kafka topic to S3 using Kafka Connect. There are 10 brokers in the cluster, the topic has 2 partitions with replication factor of 3. How many tasks will you configure for the S3 connector?
You cannot have more sink tasks (= consumers) than the number of partitions, so 2.
while (true) {
ConsumerRecords
try {
consumer.commitSync();
} catch (CommitFailedException e) {
log.error("commit failed", e)
}
for (ConsumerRecord
{
System.out.printf("topic = %s, partition = %s, offset =
%d, customer = %s, country = %s
",
record.topic(), record.partition(),
record.offset(), record.key(), record.value());
}
}
What kind of delivery guarantee this consumer offers?
Here offset is committed before processing the message. If consumer crashes before processing the message, message will be lost when it comes back up.
A Kafka producer application wants to send log messages to a topic that does not include any key. What are the properties that are mandatory to configure for the producer configuration? (select three)
Both key and value serializer are mandatory.
Which of the following setting increases the chance of batching for a Kafka Producer?
linger.ms forces the producer to wait to send messages, hence increasing the chance of creating batches
A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored?
Message with no keys will be stored with round-robin strategy among partitions.
Daniel Robinson
11 days agoBarbara Flores
1 month agoMatthew Davis
1 month agoJoshua Reed
2 months agoNancy Harris
2 months agoJeffrey Williams
3 months agoHarold Roberts
3 months agoAshley Flores
4 months agoMichelle Adams
5 months agoDonald Walker
5 months agoJames Rivera
6 months agoMichelle Perez
5 months agoEdward Miller
5 months agoGerald Anderson
5 months agoElizabeth Nelson
5 months agoCoral
6 months agoErin
7 months agoRex
7 months agoPortia
7 months agoFabiola
7 months agoAnnamae
8 months agoAllene
8 months agoJosphine
8 months agoMaurine
8 months agoMatthew
9 months agoMerri
9 months agoAlbina
9 months agoAugustine
9 months agoMarylou
10 months agoYoulanda
10 months agoOllie
10 months agoAlex
11 months agoGearldine
11 months agoEmiko
11 months agoRozella
11 months agoOnita
12 months agoTawna
12 months agoWilda
1 year agoOwen
1 year agoSkye
1 year agoLizette
1 year agoLonny
1 year agoShawna
1 year agoVincent
1 year agoCory
1 year agoFrancisca
1 year agoCarry
1 year agoNorah
2 years agoBurma
2 years agoMica
2 years agoCatina
2 years agoLouisa
2 years agoJaime
2 years agoNikita
2 years agoAnnita
2 years agoGladys
2 years agoMira
2 years agoRolande
2 years agoCarey
2 years agoVirgina
2 years agoAllene
2 years agoBroderick
2 years agoGary
2 years agoShelton
2 years agoMisty
2 years agoMabel
2 years agoDorian
2 years agoMicheal
2 years agoLinsey
2 years ago