Skip to content
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

Error while creating source connector #55

Open
rsjain1978 opened this issue May 26, 2018 · 3 comments
Open

Error while creating source connector #55

rsjain1978 opened this issue May 26, 2018 · 3 comments

Comments

@rsjain1978
Copy link

Hi,

I am trying to create a source connector using the below-listed command and configurations.

curl -X POST
http://localhost:8091/connectors
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d '{
"name": "kafka-connect-twitter",
"config": {
"connector.class": "com.eneco.trading.kafka.connect.twitter.TwitterSourceConnector",
"tasks.max": "1",
"topic": "fooTweets",
"twitter.consumerkey": "xxxxxxxxxxxxxx",
"twitter.consumersecret": "xxxxxxxxxxxx",
"twitter.token": "xxxxxxxxxxx",
"twitter.secret": "xxxxxxxxxxx",
"track.terms": "fooTerm"
}
}'

However, I am getting an error: {"error_code":500,"message":"Must configure one of topics or topics.regex"}

For some reason, I am unable to specify the topic name in the 'topic' field.

To make things more difficult for myself, I specified the topic name in 'topics' field and was left scratching my head why the topic being used was called 'tweets', realized now that it's the default value of topic name in the code.

Any help/advise would be appreciated.

Thanks

@jsing120
Copy link

jsing120 commented Jun 16, 2019

I think in the new Kafka versions the key "topic" is no longer accepted use either
"topics": "fooTweets",
or "topics.regex":"fooTweets"

@ThadeuFerreira
Copy link

@jsing120

There is still a problem.
The topic has the name tweets, no matter what I add to the .properties file.

@Baresse
Copy link

Baresse commented Jun 30, 2020

@ThadeuFerreira

It seems you have to add both to make it work :

"topic": "fooTweets",
"topics": "fooTweets",

Dunno but this connector seems to be little bit outdated no ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants