[GitHub] [pulsar] tuteng commented on issue #5454: mysql JDBC Sink - consumer error

2020-02-16 Thread GitBox
tuteng commented on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-586815958
 
 
   `libpulsar` seems unable to update to version 2.5.0 yet. 
https://github.com/apache/pulsar/issues/6091 @nicolo-paganin 


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] tuteng commented on issue #5454: mysql JDBC Sink - consumer error

2020-02-14 Thread GitBox
tuteng commented on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-586544682
 
 
   Can you describe your environment, container, standalone or cluster, so that 
I can quickly reproduce this problem? @nicolo-paganin Thanks.


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] tuteng commented on issue #5454: mysql JDBC Sink - consumer error

2019-10-30 Thread GitBox
tuteng commented on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-547762190
 
 
   Thank you, I have reproduced this problem locally, and I am looking at how 
to fix it.


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] tuteng commented on issue #5454: mysql JDBC Sink - consumer error

2019-10-28 Thread GitBox
tuteng commented on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-547234771
 
 
   Please try use localrun to start and look at broker's log.
   
   ```
   bin/pulsar-admin sinks localrun --archive 
./connectors/pulsar-io-jdbc-2.4.1.nar --inputs pulsar-mysql-jdbc-sink-topic 
--name pulsar-mysql-jdbc-sink --sink-config-file 
./connectors/pulsar-mysql-jdbc-sink.yaml --parallelism 1
   ```
   References: 
http://pulsar.apache.org/docs/en/next/io-debug/#debug-in-localrun-mode
   @jm7647 


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] tuteng commented on issue #5454: mysql JDBC Sink - consumer error

2019-10-24 Thread GitBox
tuteng commented on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-545966420
 
 
   http://pulsar.apache.org/docs/en/next/io-connectors/
   It is already being fixed.


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] tuteng commented on issue #5454: mysql JDBC Sink - consumer error

2019-10-23 Thread GitBox
tuteng commented on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-545688370
 
 
   Please show your producer's code.
   
   ```
   @Builder
   @Data
   @NoArgsConstructor
   @AllArgsConstructor
   public class Foo3 {
   public String field1;
   public String field2;
   public int field3;
   }
   
  PulsarClient client = PulsarClient.builder()
   .serviceUrl("pulsar://localhost:6650")
   .build();
   
   
   AvroSchema schema = 
AvroSchema.of(SchemaDefinition.builder().withPojo(Foo3.class).withAlwaysAllowNull(false).build());
   Producer producer = client.newProducer(schema)
   .topic("test-jdbc")
   .create();
   for (int i = 0; i < 20; i++) {
   String key = "key-" + i;
   
   Foo3 obj = new Foo3();
   obj.setField1("field1_insert_" + i);
   obj.setField2("field2_insert_" + i);
   obj.setField3(i);
   Map properties = Maps.newHashMap();
   properties.put("EVENT", "INSERT");
   
   producer.newMessage()
   .properties(properties)
   .key(key)
   .value(obj)
   .send();
   }
   
   for (int i = 0; i < 20; i++) {
   String key = "key-" + i;
   
   Foo3 obj = new Foo3();
   obj.setField1("field1_insert_" + i);
   obj.setField2("field2_update_" + i);
   obj.setField3(i);
   Map properties = Maps.newHashMap();
   properties.put("EVENT", "UPDATE");
   
   producer.newMessage()
   .properties(properties)
   .key(key)
   .value(obj)
   .send();
   }
   
   for (int i = 0; i < 20; i++) {
   String key = "key-" + i;
   
   Foo3 obj = new Foo3();
   obj.setField1("field1_insert_" + i);
   obj.setField2("field2_delete_" + i);
   obj.setField3(i);
   Map properties = Maps.newHashMap();
   properties.put("EVENT", "DELETE");
   
   producer.newMessage()
   .properties(properties)
   .key(key)
   .value(obj)
   .send();
   }
   producer.close();
   client.close();
   ```


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:
us...@infra.apache.org


With regards,
Apache Git Services