codope commented on PR #6079:
URL: https://github.com/apache/hudi/pull/6079#issuecomment-1253759046
> I hit this issue while testing this change with Kafka Connect sink
connector for Hudi:
>
> ```
> [2022-09-16 23:44:48,156] ERROR [hudi-sink|task-3]
WorkerSinkTask{id=hudi-sink-3} Task threw an uncaught and unrecoverable
exception. Task is being killed and will not recover until manually restarted
(org.apache.kafka.connect.runtime.WorkerTask:193)
> java.lang.NoClassDefFoundError: org/apache/hudi/keygen/CustomKeyGenerator
> at
org.apache.hudi.connect.utils.KafkaConnectUtils.getPartitionColumns(KafkaConnectUtils.java:189)
> at
org.apache.hudi.connect.writers.KafkaConnectTransactionServices.<init>(KafkaConnectTransactionServices.java:90)
> at
org.apache.hudi.connect.transaction.ConnectTransactionCoordinator.<init>(ConnectTransactionCoordinator.java:88)
> at
org.apache.hudi.connect.HoodieSinkTask.bootstrap(HoodieSinkTask.java:191)
> at org.apache.hudi.connect.HoodieSinkTask.open(HoodieSinkTask.java:151)
> ```
>
> `KafkaConnectUtils` in `hudi-kafka-connect` uses `CustomKeyGenerator` from
`hudi-spark-client module`. @rmahindra123 looks like we cannot get rid of
hudi-spark dependencies here?
@yihua @rmahindra123 I think we should remove the usage of
`CustomKeyGenerator`. Anyway, it's marked deprecated. I have made changes to
that effect but have not tested yet. Let me know what you think.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]