Skip to content

Instantly share code, notes, and snippets.

@ivanursul
Created October 23, 2017 17:06
Show Gist options
  • Save ivanursul/bf7b2b100066cf0e4bc4599ffcebf86d to your computer and use it in GitHub Desktop.
Save ivanursul/bf7b2b100066cf0e4bc4599ffcebf86d to your computer and use it in GitHub Desktop.
Original documentation: https://github.com/justonedb/kafka-sink-pg-json
1. Place the justone-kafka-sink-pg-json-1.0.jar in the Kafka directory lib
2. Place property names in the config folder:
justone-kafka-sink-pg-json-standalone.properties
justone-kafka-sink-pg-json-connector.properties
3. Configure this files
4. Install the sql file:
psql -U ${user} -h ${host} -d ${database} -f "/Users/ivanursul/Downloads/kafka-sink-pg-json/install-justone-kafka-sink-pg-1.0.sql"
5. Place postgres driver to the lib folder
6. Run zookeper
7. Run Kafka broker
8. Run connect
bin/connect-standalone.sh config/justone-kafka-sink-pg-json-standalone.properties config/justone-kafka-sink-pg-json-connector.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment