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 2019/10/25 18:42:54 UTC

[GitHub] [pulsar] jm7647 edited a comment on issue #5454: mysql JDBC Sink - consumer error

jm7647 edited a comment on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-546101921
 
 
   This  is producer code I used based on your sample - still same error:
   
           producer = client.create_producer(
                           topic='pulsar-mysql-jdbc-sink-topic',
                           properties={"EVENT": "INSERT"},
                           schema=AvroSchema(Test))
   
           r = Test(id=1, name="Hello World")
           producer.send(r)
   
   
   Additional observation:
   
   Above error also makes sink stop running, it attempts to restart in a loop but  fails with same error therefor according to status it is not running any more:
   
       bin/pulsar-admin sinks status --tenant public --namespace default --name pulsar-mysql-jdbc-sink
      {
        "numInstances" : 1,
        "numRunning" : 0,
        "instances" : [ {
          "instanceId" : 0,
          "status" : {
            "running" : **false,**
   

----------------------------------------------------------------
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