Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10707

Socks Proxy is not taking effect in Java API

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: clients, consumer, producer
    • Labels:
      None

      Description

      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

      Exception in thread "main" java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Topic xxxxxx not present in metadata after 60000 ms.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sskmail14@gmail.com Sasikumar Senthilnathan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: