티스토리 뷰
public static void create(String name) {
AdminClient client = AdminClient.create(properties());
NewTopic topic = new NewTopic(
name,
(int)conf().get("partition"),
Short.parseShort(String.valueOf(conf().get("replication.factor"))));
client.createTopics(Collections.singleton(topic));
client.close();
}
Why is AdminClient not failing when creating a topic with Kafka cluster not running?
Why don't I get an error message when I run the following producer code and Kafka is not even running? I would expect the createTopics method to throw an exception, but it doesn't happen. Why? final
stackoverflow.com
How to configure kafka topic retention policy during creation with Spring?
I need to configure retention policy of a particular topic during creation. I tried to look for solution i could only find command level alter command as below ./bin/kafka-topics.sh --zookeeper
stackoverflow.com
How to create a Topic in Kafka through Java
I want to create a topic in Kafka (kafka_2.8.0-0.8.1.1) through java. It is working fine if I create a topic in command prompt, and If I push message through java api. But I want to create a topic
stackoverflow.com
'공부' 카테고리의 다른 글
[Java] MySQL get column name (0) | 2022.01.16 |
---|---|
[Spring] Profile (0) | 2022.01.14 |
[Java] kafka create topic (0) | 2022.01.14 |
[Java] StringEscapeUtils.escapeJava(str); (0) | 2022.01.14 |
[Oracle] char, varchar, varchar2 (0) | 2022.01.14 |
[Spring Boot] How to fully disable swagger-ui in spring-boot?(/swagger-ui.html should return 404) (0) | 2022.01.12 |
- Total
- 142,683
- Today
- 9
- Yesterday
- 219
- 김달
- 유투브
- wlw
- 메디파크 내과 전문의 의학박사 김영수
- 어떻게 능력을 보여줄 것인가?
- follower
- COUNT
- 개리마커스
- 인스타그램
- 클루지
- 연애학개론
- Kluge
- Bot
- 책그림
- 팔로워 수 세기