Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start cdc agent on cassandra 4.1.2 #180

Open
dispensable opened this issue May 27, 2024 · 0 comments
Open

Failed to start cdc agent on cassandra 4.1.2 #180

dispensable opened this issue May 27, 2024 · 0 comments

Comments

@dispensable
Copy link

when start latest agent the process carshed with:

Exception in thread "main" java.lang.reflect.InvocationTargetException                                                                                                                                                                                                                                                        
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                                                                                                                                                                     
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                                                                                                                                                                                   
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                                                                                                                                                                                           
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)                                                                                                                                                                                                                                                         
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)                                                                                                                                                                                                            
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)                                                                                                                                                                                                           
Caused by: java.lang.NoClassDefFoundError: org/apache/cassandra/concurrent/JMXEnabledThreadPoolExecutor                                                                                                                                                                                                                       
        at com.datastax.oss.cdc.agent.CommitLogReaderServiceImpl.<init>(CommitLogReaderServiceImpl.java:42)                                                                                                                                                                                                                   
        at com.datastax.oss.cdc.agent.Agent.startCdcAgent(Agent.java:68)                                                                                                                                                                                                                                                      
        at com.datastax.oss.cdc.agent.Agent.main(Agent.java:55)                                                                                                                                                                                                                                                               
        at com.datastax.oss.cdc.agent.Agent.premain(Agent.java:31)                                                                                                                                                                                                                                                            
        ... 6 more                                                                                                                                                                                                                                                                                                            
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor                                                                                                                                                                                                                     
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)                                                                                                                                                                                                                            
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)                                                                                                                                                                                                                         
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)                                                                                                                                                                                                                                                    
        ... 10 more                                                                                                                                                                                                                                                                                                           
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./src/java.instrument/share/native/libinstrument/JPLISA                                                                                                                                                                
gent.c line: 422                                                                                                                                                                                                                                                                                                              
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed                                                                                                                                                                                                                                        
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)                                                                                                                                                                                                                     
V  [libjvm.so+0x8ccf95]  jni_FatalError+0x75                                                                                                                                                                                                                                                                                  
V  [libjvm.so+0x9e1bff]  JvmtiExport::post_vm_initialized()+0x34f                                                                                                                                                                                                                                                             
V  [libjvm.so+0xe0a85b]  Threads::create_vm(JavaVMInitArgs*, bool*)+0xa2b                                                                                                                                                                                                                                                     
V  [libjvm.so+0x8e3501]  JNI_CreateJavaVM+0x51                                                                                                                                                                                                                                                                                
C  [libjli.so+0x489d]  JavaMain+0x8d                                                                                                                                                                                                                                                                                          
C  [libjli.so+0x95d9]  ThreadJavaMain+0x9

looks like the JMXEnabledThreadPoolExecutor class only in 4.0 not 4.1.x. But the readme says support 4.0+.

SO, does the cdc agent support cassandra oss 4.1.x ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant