-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some application on Mac OS X 12.3.1 M1 can't be used with 4.16 #451
Comments
please paste |
Works for curl after following these two tickets But the kafka client still throws exception Here's the contents of config.mak on M1 |
this is the reason. your "kafka" binary is compiled for intel and executed via rosetta binary translation. therefore arm64e proxychains cant be injected. 2 solutions exist:
|
Tried both solutions, both worked. |
When I try to list the topics from a Kafka cluster using the following shell wrapped java application, it throws exception.
proxychains4 ~/Downloads/kafka_2.11-2.3.0/bin/kafka-topics.sh --list --bootstrap-server server:port
[proxychains] config file found: /opt/homebrew/etc/proxychains.conf
[proxychains] preloading /opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib
[2022-05-17 08:28:16,061] WARN Couldn't resolve server server:port from bootstrap.servers as DNS resolution failed for server:port (org.apache.kafka.clients.ClientUtils)
Exception in thread "main" org.apache.kafka.common.KafkaException: Failed to create new KafkaAdminClient
at org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:407)
at org.apache.kafka.clients.admin.AdminClient.create(AdminClient.java:55)
at kafka.admin.TopicCommand$AdminClientTopicService$.createAdminClient(TopicCommand.scala:165)
at kafka.admin.TopicCommand$AdminClientTopicService$.apply(TopicCommand.scala:169)
at kafka.admin.TopicCommand$.main(TopicCommand.scala:55)
at kafka.admin.TopicCommand.main(TopicCommand.scala)
Caused by: org.apache.kafka.common.config.ConfigException: No resolvable bootstrap urls given in bootstrap.servers
at org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:88)
at org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:47)
at org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:367)
But this same command works on Intel CPU Mac OS X 12.3.1 with 4.16.
https://github.com/apache/kafka/blob/trunk/bin/kafka-topics.sh
The text was updated successfully, but these errors were encountered: