k8ssandra / management-api-for-apache-cassandra

RESTful / Secure Management Sidecar for Apache Cassandra
Apache License 2.0
70 stars 51 forks source link

CDC is not working in the OSS images (at least not UBI) #510

Closed burmanm closed 1 month ago

burmanm commented 2 months ago

When starting the CDC enabled bundles, we end up with:

[cassandra@test-cluster-dc1-default-sts-0 cassandra]$ cat stdout.log 
Error occurred during initialization of VM
agent library failed to init: instrument
[cassandra@test-cluster-dc1-default-sts-0 cassandra]$ cat stderr.log 
Error opening zip file or JAR manifest missing : /opt/cdc_agent/cdc-agent.jar
[cassandra@test-cluster-dc1-default-sts-0 cassandra]$

This works in the DSE images, but not on the OSS UBI images. @Miles-Garnsey

emerkle826 commented 1 month ago

I'll try to take a look at this today if I can

emerkle826 commented 1 month ago

The issue was with the symlinking of the CDC agent jarfile. It was wrong in the UBI8 based images. In the Ubuntu based images, the file is moved, not linked, which is why it works there.