Closed chenxu8989 closed 1 year ago
执行创建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 其余配置全部是默认, 如图
创建topic
kafka-topics.sh \
--create \
--bootstrap-server ds-1:9092,ds-2:9092,ds-3:9092 \
--topic converge_topic \
--partitions 10 \
--replication-factor 3
No response
dev
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
Search before asking
What happened
kafka 无法创建topic
执行创建topic命令时异常
只修改过 num.partitions 和 offsets.topic.replication.factor 其余配置全部是默认, 如图
What you expected to happen
创建topic
How to reproduce
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct