1 个回答
Flink写入pulsar sink的示例代码是:
PulsarSink<String> sink = PulsarSink.builder()
.setServiceUrl(serviceUrl)
.setAdminUrl(adminUrl)
.setTopics("topic1")
.setSerializationSchema(new SimpleStringSchema())
.setDeliveryGuarantee(DeliveryGuarantee.AT_LEAST_ONCE)
.build();
stream.sinkTo(sink);
发布于:5个月前 (04-11) IP属地:四川省
我来回答
您需要 登录 后回答此问题!