Skip to content

Instantly share code, notes, and snippets.

@manjuapu
Last active June 20, 2018 07:48
Show Gist options
  • Save manjuapu/416bec327cf8eeb073615e866b90e8fd to your computer and use it in GitHub Desktop.
Save manjuapu/416bec327cf8eeb073615e866b90e8fd to your computer and use it in GitHub Desktop.
{
 "name": "twitter_source_json_01",
 "config": {
   "connector.class": "com.github.jcustenborder.kafka.connect.twitter.TwitterSourceConnector",
   "twitter.oauth.accessToken": "xxxx",
   "twitter.oauth.consumerSecret": "xxxxx",
   "twitter.oauth.consumerKey": "xxxx",
   "twitter.oauth.accessTokenSecret": "xxxxx",
   "kafka.delete.topic": "twitter_deletes_json_01",
   "value.converter": "org.apache.kafka.connect.json.JsonConverter",
   "key.converter": "org.apache.kafka.connect.json.JsonConverter",
   "value.converter.schemas.enable": false,
   "key.converter.schemas.enable": false,
   "kafka.status.topic": "twitter_json_01",
   "process.deletes": true,
   "filter.keywords": "rickastley,kafka,ksql,rmoff"
 }
}
@calmamani
Copy link

Thanks for the kafka-twitter tutorial. There is a minor issue with the config file. The whitespaces.

When I run

curl https://gist.githubusercontent.com/manjuapu/416bec327cf8eeb073615e866b90e8fd/raw/be442df35afac333eae0f7357672110553e6f720/twitter-source | jq

I get

parse error: Invalid numeric literal at line 2, column 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment