-
Notifications
You must be signed in to change notification settings - Fork 12
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
Is cassandra 2.0.4 supported? #54
Comments
What version of Cassandra are you using? Brian O'Neill Health Market Science This information transmitted in this email message is for the intended From: newtechfellas [email protected] I see exceptions on starting cassandra after I drop in the jars and updating ‹ |
Tried with 2.0.9 and 2.0.4 |
That is likely the issue. The AOP is designed to work against 1.2. -brian Brian O'Neill Health Market Science This information transmitted in this email message is for the intended From: newtechfellas [email protected] Tried with 2.0.9 and 2.0.4 ‹ |
Yes. I tried it. I get the trigger mechanism but it gives me limited information i.e the columns/values. I need more details for auditing requirement. Was hoping AOP would help. I am trying to address http://stackoverflow.com/questions/24684457/data-auditing-in-cassandra problem. Is there a way I could use AOP for this requirement? |
It shouldn¹t be too tough to make the AOP compatible with C* 2. You likely just need to change the slice point, which is defined here: In 2+, I believe the packaging/naming has changed for CassandraServer, but I If you end up porting this to 2, I¹d love to merge a PR for it. =) -brian Brian O'Neill Health Market Science This information transmitted in this email message is for the intended From: newtechfellas [email protected] Yes. I tried it. I get the trigger mechanism but it gives me limited ‹ |
And yes, AOP might provide an elegant solution to auditing requirements. -brian Brian O'Neill Health Market Science This information transmitted in this email message is for the intended From: newtechfellas [email protected] Yes. I tried it. I get the trigger mechanism but it gives me limited ‹ |
Ok. thank you for confirming. I am trying to make this work with > 2.0 version. If I succeed, I will send PR. |
Best of luck, and much appreciated. Brian O'Neill Health Market Science This information transmitted in this email message is for the intended From: newtechfellas [email protected] Ok. thank you for confirming. I am trying to make this work with > 2.0 ‹ |
After updating 2.0.9 dependency and changing few class names and aspectj version to 1.6, I am stuck with below issue in [AppClassLoader@10393e97] weaveinfo Join point 'method-execution(void org.apache.cassandra.thrift.CassandraServer.doInsert(org.apache.cassandra.thrift.ConsistencyLevel, java.util.List, boolean))' in Type 'org.apache.cassandra.thrift.CassandraServer' (CassandraServer.java:1067) advised by afterThrowing advice from 'com.hmsonline.cassandra.triggers.CassandraServerTriggerAspect' (CassandraServerTriggerAspect.java) 2014-07-14 15:14:28,846-0500 | DEBUG [main] AbstractTriggerTest.loadDataSchema(65) | ======================= LOADED DATA SCHEMA FOR TESTS ========================== 2014-07-14 15:14:28,882-0500 | ERROR [Thrift:1] CassandraDaemon.uncaughtException(199) | Exception in thread Thread[Thrift:1,5,main] java.lang.AssertionError at org.apache.cassandra.config.CFMetaData.getCfDef(CFMetaData.java:1926) at org.apache.cassandra.thrift.ThriftValidation.validateColumnNames(ThriftValidation.java:214) at org.apache.cassandra.thrift.ThriftValidation.validateColumnNames(ThriftValidation.java:267) at org.apache.cassandra.thrift.CassandraServer.internal_insert(CassandraServer.java:656) at org.apache.cassandra.thrift.CassandraServer.insert(CassandraServer.java:695) at org.apache.cassandra.thrift.Cassandra$Processor$insert.getResult(Cassandra.java:3782) at org.apache.cassandra.thrift.Cassandra$Processor$insert.getResult(Cassandra.java:3766) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:201) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) 2014-07-14 15:14:28,891-0500 | DEBUG [main] CassandraStore.create(59) | Did not create [triggers:Triggers] (probably already there) Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 2.87 sec <<< FAILURE! 2014-07-14 15:14:30,949-0500 | ERROR [StorageServiceShutdownHook] CassandraDaemon.uncaughtException(199) | Exception in thread Thread[StorageServiceShutdownHook,5,main] java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@108e08dc rejected from org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor@5ce7ac01[Shutting down, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 1] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2013) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816) at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:325) at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:594) at org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay(DebuggableScheduledThreadPoolExecutor.java:59) at org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:295) at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:421) at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:392) at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:315) at org.apache.cassandra.db.Keyspace.(Keyspace.java:272) at org.apache.cassandra.db.Keyspace.open(Keyspace.java:114) at org.apache.cassandra.db.Keyspace.open(Keyspace.java:92) at org.apache.cassandra.db.Keyspace$1.apply(Keyspace.java:86) at org.apache.cassandra.db.Keyspace$1.apply(Keyspace.java:83) at com.google.common.collect.Iterators$8.transform(Iterators.java:794) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:582) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) at java.lang.Thread.run(Thread.java:722) Results : Failed tests: testLogWrite(com.hmsonline.cassandra.triggers.TriggerTest) Tests in error: testThrowingExceptionWhenInsertingColumn(com.hmsonline.cassandra.triggers.TriggerTest) |
did it work for C*3,i need tigger to do sth.i want to learn from your coding that how it to work.thanks |
@JavaNikon this was a hack in the older versions of Cassandra that used AOP to get trigger like behavior. These days, trigger support is built right in: |
oh,thank you, i will see it |
I see exceptions on starting cassandra after I drop in the jars and updating the JVM_OPTS.
The text was updated successfully, but these errors were encountered: