简体   繁体   中英

Apart from Kafka-connect FileConfigProvider, Do we have anything like LdapConfigProvider?

Need to create kafka-connect JdbcSinkConnector for Oracle DB using Datasource details which are externalized in LDAP.

Following are the connector details kafka-connect-jdbc/sink-quickstart-oracle.properties where connection details like connection.url , connection.username , connection.password etc. should come from LDAP.

    name=test-sink
    connector.class=io.confluent.connect.jdbc.JdbcSinkConnector
    tasks.max=1
    topics=orders
    connection.url= ???? #should be sourced from LDAP
    connection.username= ???? #should be sourced from LDAP
    connection.password= ???? #should be sourced from LDAP
    auto.create=true

Out of the box, Kafka does not provide such a feature or configuration.

As part of KIP-297 , you would have to write/find your own implementation of a ConfigProvider from which you could do an LDAP lookup, and add that built JAR to your Connect workers' classpaths.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM