FATAL ERROR in native method: processing of -javaagent failed

247 views
Skip to first unread message

Abhishek Karigar

unread,
Apr 10, 2020, 5:00:43 AM4/10/20
to Prometheus Users

running kafka, zookeeper with prometheus
following is the error i get when i try to produce data from kafka container

bash-4.4# kafka-console-producer.sh --broker-list localhost:9094 --topic myTopic
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: Address in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.net.httpserver.ServerImpl.bind(ServerImpl.java:133)
at sun.net.httpserver.HttpServerImpl.bind(HttpServerImpl.java:54)
at io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer.(HTTPServer.java:145)
at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:31)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed

Praveen Srinivasan

unread,
Sep 7, 2020, 9:57:04 AM9/7/20
to Prometheus Users
I am also having the same issue.

Praveen Srinivasan

unread,
Sep 8, 2020, 2:43:55 AM9/8/20
to Prometheus Users
Try the below, it will work.

KAFKA_OPTS="" kafka-console-producer.sh --broker-list localhost:9094 --topic myTopic

Reply all
Reply to author
Forward
0 new messages