datavane / datasophon

The next generation of cloud-native big data management expert , Aims to help users rapidly build stable, efficient, and scalable cloud-native platforms for big data.
https://datasophon.github.io/datasophon-website/
Apache License 2.0
1.11k stars 387 forks source link

[Bug] kafka cannot create topic #269

Closed chenxu8989 closed 1 year ago

chenxu8989 commented 1 year ago

Search before asking

What happened

kafka 无法创建topic

image

image

执行创建topic命令时异常

kafka-topics.sh \
--create \
--bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 \
--topic converge_topic \
--partitions 10 \
--replication-factor 3
[root@ds-1 ~]# kafka-topics.sh --create --bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 --topic converge_topic --partitions 10 --replication-factor 3
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.net.BindException: 地址已在使用
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:438)
        at sun.nio.ch.Net.bind(Net.java:430)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:100)
        at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
        at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
        at com.sun.net.httpserver.HttpServer.create(HttpServer.java:130)
        at io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer.<init>(HTTPServer.java:190)
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:31)
        ... 6 more
FATAL ERROR in native method: processing of -javaagent failed
已放弃(吐核)
[root@ds-1 ~]#

只修改过 num.partitions 和 offsets.topic.replication.factor 其余配置全部是默认, 如图

What you expected to happen

创建topic

How to reproduce

kafka-topics.sh \
--create \
--bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 \
--topic converge_topic \
--partitions 10 \
--replication-factor 3

Anything else

No response

Version

dev

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 1 year ago

Search before asking

What happened

kafka 无法创建topic

image

image

执行创建topic命令时异常

kafka-topics.sh \
--create \
--bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 \
--topic converge_topic \
--partitions 10 \
--replication-factor 3
[root@ds-1 ~]# kafka-topics.sh --create --bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 --topic converge_topic --partitions 10 --replication-factor 3
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.net.BindException: 地址已在使用
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:438)
        at sun.nio.ch.Net.bind(Net.java:430)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:100)
        at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
        at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
        at com.sun.net.httpserver.HttpServer.create(HttpServer.java:130)
        at io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer.<init>(HTTPServer.java:190)
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:31)
        ... 6 more
FATAL ERROR in native method: processing of -javaagent failed
已放弃(吐核)
[root@ds-1 ~]#

只修改过 num.partitions 和 offsets.topic.replication.factor 其余配置全部是默认, 如图

What you expected to happen

创建topic

How to reproduce

kafka-topics.sh \
--create \
--bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 \
--topic converge_topic \
--partitions 10 \
--replication-factor 3

Anything else

No response

Version

dev

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 1 year ago

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

datasophon commented 1 year ago

the same as https://github.com/datasophon/datasophon/issues/255