kafka
kafka相关
头顶榴莲树
持续分享大数据技术经验,欢迎交流~
展开
-
Structured Streaming消费带kerberos认证的kafka问题解决
主要错误:SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7) - LOOKING_UP_SERVER)]kafka连接配置如下:val df = spark .readStream .format("kafka")原创 2022-03-01 10:31:56 · 3703 阅读 · 0 评论 -
kafka指定时间范围消费一批topic数据
public class JavaConsumerTool { /** * 创建消费者 * @return */ public static KafkaConsumer<String, String> getConsumer(){ Properties props = new Properties(); props.put("bootstrap.servers", "127.0.0.1:9092"); .原创 2022-01-18 16:23:03 · 3561 阅读 · 0 评论