jar-файл jdbc для ibm db2 as400 находится по адресу:
/confluent-4.1.0/share/java/kafka-connect-jdbc\jt400.jar
I am trying to configure the source file from Json file
{
"name":"SOURCE_NAME",
"config":{
"connector.class":"io.confluent.connect.jdbc.JdbcSourceConnector",
"tasks.max":"1",
"topic.prefix":"TOPIC_NAME",
"connection.url":"jdbc:as400://IP_ADDRESS:PORT;libraries=DATABASE;",
"connection.user":"USER_NAME",
"connection.password":"PASSWORD",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http://localhost:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http://localhost:8081",
"log4j.logger.io.confluent.connect.jdbc":"DEBUG",
"mode": "incrementing",
"incrementing.column.name": "ID",
"query": "SELECT * FROM TABLE",
"poll.interval.ms": "60000",
"batch.max.rows": "10000",
"table.types": "TABLE",
"plugin.path":"/confluent-4.1.0/share/java"
}
}
Я получаю ошибку
{"error_code":400,"message":"Connector configuration is invalid and contains the following 2 error(s):
Invalid value java.sql.SQLException: The application requester cannot establish the connection. (Connection refused (Connection refused)) for configuration Couldn't open connection to jdbc:as400://IP_ADDRESS:PORT/DATABASE
Invalid value java.sql.SQLException: The application requester cannot establish the connection. (Connection refused (Connection refused)) for configuration Couldn't open connection to jdbc:as400://IP_ADDRESS:PORT/DATABASE
You can also find the above list of errors at the endpoint `/{connectorType}/config/validate`"}
Я успешно настроил исходники Connect для Microsoft SQL Server, и конфигурации кажутся очень похожими. Что здесь может пойти не так.