Am trying to establish a connection via SOCKS proxy(SOCKS5) from Kafka Client for producing messages.
Do we have any way to set the SOCKS proxy via Java client?
I have tried setting it via java args as below
java -cp ".:BOOT-INF/lib/*" Sample -DsocksProxyHost=xxxx -DsocksProxyPort=1080 -DsocksNonProxyHosts="xxxxx"
Am getting the below exception