Hi rohit,

Surely  unset jmx report can solve my issue 
Exit and login again not work. 
But i can execute the consumer.sh on others hosts.

Thanks,
Lei


wangl...@geekplus.com.cn 

 
From: rohit garg
Date: 2020-05-11 13:24
To: users
CC: wanglei2
Subject: Re: kafka-console-consumer.sh: Port already in use Exception after 
enable JMX
There are two ways to solve this issue,

Exit and relogin again ,

Or again after broker is started , unset jmx port and you are good to go .

Thanks and Regards,
Rohit Garg

On Mon, May 11, 2020, 10:10 <manoj.agraw...@cognizant.com> wrote:
Please share the consumer.sh .
Are you using Apache kafka  and what version ?

From: "wangl...@geekplus.com.cn" <wangl...@geekplus.com.cn>
Date: Sunday, May 10, 2020 at 9:38 PM
To: users <users@kafka.apache.org>
Cc: "Agrawal, Manoj (Cognizant)" <manoj.agraw...@cognizant.com>
Subject: Re: Re: kafka-console-consumer.sh: Port already in use Exception after 
enable JMX

[External]
Hi Manoj,

I have tried, not work.

When i changed to 9998, the consumer.sh tells me Port already in use: 9998

Thanks,
Lei


________________________________
wangl...@geekplus.com.cn<mailto:wangl...@geekplus.com.cn>


From: manoj.agraw...@cognizant.com<mailto:manoj.agraw...@cognizant.com>
Date: 2020-05-11 12:04
To: users@kafka.apache.org<mailto:users@kafka.apache.org>
Subject: Re: kafka-console-consumer.sh: Port already in use Exception after 
enable JMX
You can change jmx-port to any available port - 9992

On 5/10/20, 7:49 PM, "wangl...@geekplus.com.cn" <wangl...@geekplus.com.cn> 
wrote:

    [External]


    Add  JMX_PORT=9988 to kafka-run-class.sh  to enable JMX

    After execute bin/kafka-console-consumer.sh there‘s exception:

    Error: Exception thrown by the agent : java.rmi.server.ExportException: 
Port already in use: 9988; nested exception is:
            java.net.BindException: Address already in use (Bind failed)




    wangl...@geekplus.com.cn



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored. This e-mail and any files transmitted with it are for the sole 
use of the intended recipient(s) and may contain confidential and privileged 
information. If you are not the intended recipient(s), please reply to the 
sender and destroy all copies of the original message. Any unauthorized review, 
use, disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.

Reply via email to