【Kafka】JavaAPI操作
2024-09-07 10:30:29
先创建Maven工程导入jar包
帮助文档地址:http://kafka.apachecn.org/documentation.html#api
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- java编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
Producer API
查看相关文章:【Kafka】Producer API
Consumer API
查看相关文章:【Kafka】Consumer API
Stream API
查看相关文章:【Kafka】Stream API
最新文章
- [Erlang 0121] 当我们谈论Erlang Maps时,我们谈论什么 Part 3
- 基于java代码的Spring-mvc框架配置
- 【ecos学习1】wmware运行redboot[方法一]--脚本实现配置
- Microsoft2013校园招聘笔试题及解答
- 使用.net备份和还原数据库
- MP4视频编码器
- word加载项打包发布注意事项总结
- 如何使用 ui-router-extras
- docker下编译mangoszero WOW60级服务端(一)
- 同步Name到Comment 及 同步 Comment 到Name
- 在SOUI中使用线性布局
- asp.net mvc5中使用Swagger 自动生成WebApi文档笔记
- Python Day 13 装饰器
- SSH登录启用Google二次身份验证
- expdp ORA-39070:Unable to open the log file
- Struts2输入校验(XML方式)
- hive 排序 order by sort by distribute by cluster by
- spark 调优——基础篇
- 悲催的IE6 七宗罪大吐槽(带解决方法)第三部分
- [转]php-fpm - 启动参数及重要配置详解