Trying to produce data to azure eventhub from kafka(on premesis)

I'm running kafka producer cli command to produce messages to eventhub. I followed the below steps: 1.export EVENT_HUBS_NAMESPACE=event_hub_name_space 2.export EVENT_HUB_NAME=event_hub_name 3.export export KAFKA_OPTS="-Djava.security.auth.login.config=/usr/local/kafka/config/jaas.conf"

producer-mirrormaker.config looks like:

bootstrap.servers=eventhubnamespace:9093
client.id=mirror_maker_producer

#Required for Event Hubs
sasl.mechanism=PLAIN
security.protocol=SASL_SSL
java.security.auth.login.config=/path-to/jaas.conf

my jaas.conf file looks like
KafkaClient {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="eventhub connection string"
password="eventhub_namespace&connectionstring";
};

kafka cli command: ./kafka-console-producer.sh --topic event-hub-name --broker-list event-hub-namespace:9093 --producer.config /path-to/producer-mirrormaker.config

after running the command, i tried to post a message. Once the message is posted, an error popped up. I'm new to kafka pls let me know what to do

Error Message:

[2019-12-12 20:36:54,333] WARN Failed to send SSL Close message  (org.apache.kafka.common.network.SslTransportLayer)
java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        at org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:195)
        at org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:163)
        at org.apache.kafka.common.utils.Utils.closeAll(Utils.java:690)
        at org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:47)
        at org.apache.kafka.common.network.Selector.close(Selector.java:487)
        at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:368)
        at org.apache.kafka.common.network.Selector.poll(Selector.java:291)
        at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:260)
        at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:236)
        at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:135)
        at java.lang.Thread.run(Thread.java:745)
[2019-12-12 20:36:54,739] WARN Failed to send SSL Close message  (org.apache.kafka.common.network.SslTransportLayer)
java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        at org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:195)
        at org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:163)
        at org.apache.kafka.common.utils.Utils.closeAll(Utils.java:690)
        at org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:47)
        at org.apache.kafka.common.network.Selector.close(Selector.java:487)
        at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:368)
        at org.apache.kafka.common.network.Selector.poll(Selector.java:291)
        at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:260)
        at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:236)
        at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:135)
        at java.lang.Thread.run(Thread.java:745)
[2019-12-12 20:36:55,142] WARN Failed to send SSL Close message  (org.apache.kafka.common.network.SslTransportLayer)
java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        at org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:195)
        at org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:163)
        at org.apache.kafka.common.utils.Utils.closeAll(Utils.java:690)
        at org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:47)
        at org.apache.kafka.common.network.Selector.close(Selector.java:487)
        at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:368)
        at org.apache.kafka.common.network.Selector.poll(Selector.java:291)
        at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:260)
        at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:236)
        at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:135)
        at java.lang.Thread.run(Thread.java:745)