Open rob-01 opened 7 years ago
I'm getting this too. Any fix coming? @rob-01 did you hack it somehow?
` private static final ConfigDef CONFIG_DEF = new ConfigDef() .define("db.host", Type.STRING, Importance.LOW, "The db.host to publish data to");
@Override
public ConfigDef config() {
return CONFIG_DEF;
}
@Override
public Config validate(Map<String, String> connectorConfigs) {
ConfigDef configDef = config();
List<ConfigValue> configValues = configDef.validate(connectorConfigs);
return new Config(configValues);
}`
connect-api 版本问题, pom.xml 修改 version 0.11.0.0 ,然后实现上面的代码就可以了
To explain the above comment, the newer version of kafka requires the "PostgreSQLSinkConnector" to override "config", so solve the problem update the class by add the confg() and validate() operations as shown in the previous comment.
you don't need the ".define("db.host", Type.STRING, Importance.LOW, "The db.host to publish data to");" bit though.
thanks @liangrui1988 for your comment 👍
Hello, I'm getting the following error and don't know how to proceed. My setup: kafka 3.2.1, zookeeper 3.2.1, both of which are running fine. Any ideas would be much appreciated! Thanks!
Error Output:
CONFIG
justone-kafka-sink-pg-json-connector.properties
justone-kafka-sink-pg-json-standalone.properties