-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Create topic support at sarama.Client level instead of sarama.Broker level. #1039
Comments
@chandradeepak were you able to create a topic using the code you posted here? |
@kamilash , in the above code , I was just trying out how to create topics. But we have a pull request pending which would allow you to create topics. see this pull request. with that pull request code and kafka 1.0 and below client code i was able to create topics , config := sarama.NewConfig() } waiting for @eapache @buyology to give their suggestions and comments on the pull request. |
Sorry for the delay in getting to all of this, I'm going to actually review #1055 and focus on getting that merged which will address this issue. |
@chandradeepak , i used your code sample but got this error:
any idea? this is my code block:
|
@kamilash , |
Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
Sarama Version:1.15.0
Kafka Version:0.10.1
Go Version:1.9
Configuration
What configuration values are you using for Sarama and Kafka?
Logs
When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set
sarama.Logger
to alog.Logger
to capture Sarama debugoutput.
Problem Description
How to create topics especially with sarama supporting 1.0 version of kafka. I see some pull requests which are merged has the implementation of CreateTopicsRequest etc.
But these are inside Broker .
It would be good if we we can create topics from sarama.NewClient().CreateTopic(topicConfig)
instead of acessing the lower level broker .
below is the code i am using now .
if i want to make a working example with kafka
so if i have to create a topic is this what i have to do
Is that how we create topics ?
The text was updated successfully, but these errors were encountered: