You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/04/14 07:44:49 UTC

[GitHub] [pulsar] dennisylyung edited a comment on issue #6034: [Pulsar IO][Issue 5633]Support avro schema for debezium connector

dennisylyung edited a comment on issue #6034: [Pulsar IO][Issue 5633]Support avro schema for debezium connector
URL: https://github.com/apache/pulsar/pull/6034#issuecomment-613278588
 
 
   > @dennisylyung Hi, could you provide some config info about the error logs, such as the pulsar source config and the reproduce steps, thanks.
   > 
   
   This is the config I was using.
   When I tested with the json converter, I just changed both the key and value converters to `org.apache.kafka.connect.json.JsonConverter`
   I also checked the schema registrey REST API, and the returned schemas are KeyValue schemas of <byte, byte>
   @gaoran10
   ```
   tenant: "my-tenant"
   namespace: "debezium"
   name: "debezium-mysql-source"
   topicName: "my-tenant/debezium/debezium-mysql-topic"
   archive: "connectors/pulsar-io-debezium-mysql-2.6.0-SNAPSHOT.nar"
   
   parallelism: 1
   
   resources:
     cpu: 0.2
     ram: 1073741824
   
   configs:
     ## sourceTask
     task.class: "io.debezium.connector.mysql.MySqlConnectorTask"
   
     ## config for mysql, docker image: debezium/example-mysql:0.8
     database.hostname: "db.hostname"
     database.port: "3306"
     database.user: "kafka_connect"
     database.password: "password"
     database.server.id: "89447"
     database.server.name: "myname"
     database.whitelist: "myschema"
     table.whitelist: "myschema.mytable"
   
     database.history: "org.apache.pulsar.io.debezium.PulsarDatabaseHistory"
     database.history.pulsar.topic: "my-tenant/debezium/history-topic"
     database.history.pulsar.service.url: "pulsar://pulsar-broker.dev-pulsar.svc.cluster.local:6650"
     ## KEY_CONVERTER_CLASS_CONFIG, VALUE_CONVERTER_CLASS_CONFIG
     key.converter: "org.apache.pulsar.kafka.shade.io.confluent.connect.avro.AvroConverter"
     value.converter: "org.apache.pulsar.kafka.shade.io.confluent.connect.avro.AvroConverter"
     schema.registry.url: "http://schema-registry.kafka.internal.data.mydomain.com:8081"
     ## PULSAR_SERVICE_URL_CONFIG
     pulsar.service.url: "pulsar://pulsar-broker.dev-pulsar.svc.cluster.local:6650"
     ## OFFSET_STORAGE_TOPIC_CONFIG
     offset.storage.topic: "my-tenant/debezium/offset-topic"
     ## Extra settings
     # database.history.store.only.monitored.tables.ddl: "true"
     database.serverTimezone: "Asia/Hong_Kong"
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services