码迷,mamicode.com
首页 > Web开发 > 详细

kafka conet

时间:2018-04-24 15:32:40      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:password   math   path   export   span   word   column   pre   postgre   

指令:
export JAVA_HOME=/usr/java/jdk1.8.0_172-amd64
export PATH=\(JAVA_HOME/bin:\)PATH
export CLASSPATH=.:\(JAVA_HOME/lib/*:\)JAVA_HOME/jre/lib/:/opt/java/lib/

bin/kafka-server-start.sh config/server.properties
/opt/kafka/bin/connect-standalone.sh /kafka/config/connect-standalone.properties /kafka/config/source-pg.properties

配置:
name=test-source-postgres-jdbc
connector.class=io.confluent.connect.jdbc.JdbcSourceConnector
tasks.max=1
connection.url=jdbc:postgresql://172.16.34.16/test?user=postgres&password=postgres
mode=incrementing
incrementing.column.name=id
topic.prefix=test-kafka-
table.whitelist=test

kafka conet

标签:password   math   path   export   span   word   column   pre   postgre   

原文地址:https://www.cnblogs.com/javaite/p/8930825.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!