I want to put Data from a MS-SQl Table with the jdbc source connector to kafka.
The data fromat should be avro. The problem ist my table have hyphen in the name.
The avro Convert try to register the schema and use the table name for the avor schema name, but it is not allowed to use a hypen at the avro schema name.
Table name: test-1
Avro:
type:"record",
name:"test-1" , < = not allowed
fields: .....
It is not an option to change the table name.
Can someone help me?
The problem is in my opinion not the topic name.
The problem is the table name.
Your solution only remove the hyphen in the topic name,
but i already remove the table name in the topic name with this:
org.apache.avro.SchemaParseException: Illegal character in: test-1
at org.apache.avro.Schema.validateName(Schema.java:1530)
at org.apache.avro.Schema.access$400(Schema.java:87)
at org.apache.avro.Schema$Name.<init>(Schema.java:673)
at org.apache.avro.Schema.createRecord(Schema.java:212)
at io.confluent.connect.avro.AvroData.fromConnectSchema(AvroData.java:867)
at io.confluent.connect.avro.AvroData.fromConnectSchema(AvroData.java:706)
at io.confluent.connect.avro.AvroData.fromConnectSchema(AvroData.java:700)