Skip to content

Commit

Permalink
-Support for kafka-sink
Browse files Browse the repository at this point in the history
Signed-off-by: rajeshLovesToCode <[email protected]>
  • Loading branch information
rajeshLovesToCode committed Aug 21, 2023
1 parent 19da476 commit d427f80
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException;
import io.confluent.kafka.serializers.KafkaAvroDeserializerConfig;
import io.confluent.kafka.serializers.KafkaJsonDeserializer;
//import kafka.common.BrokerEndPointNotAvailableException;
import kafka.common.BrokerEndPointNotAvailableException;
import org.apache.avro.generic.GenericRecord;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -148,12 +148,12 @@ public void start(Buffer<Record<Event>> buffer) {
executorService.submit(consumer);
});
} catch (Exception e) {
/* if (e instanceof BrokerNotAvailableException ||
if (e instanceof BrokerNotAvailableException ||
e instanceof BrokerEndPointNotAvailableException || e instanceof TimeoutException) {
LOG.error("The kafka broker is not available...");
} else {
LOG.error("Failed to setup the Kafka Source Plugin.", e);
}*/
}
throw new RuntimeException(e);
}
LOG.info("Started Kafka source for topic " + topic.getName());
Expand Down

0 comments on commit d427f80

Please sign in to comment.