Apache James with AWS Keyspaces for Cassandra

302 Views Asked by At

enter image description here

Trying to connect Apache James with AWS Keyspaces. James is able to connect but, failing with the above error after few seconds.

enter image description here

According to the stack trace the exception is thrown from the above method.

Any help is appreciated. Thank you,

1

There are 1 best solutions below

6
On

As error message shows, the now function isn't supported by Amazon Keyspaces, so James won't work out of box without modification. You can try to change that function to something like this (see doc for QueryBuilder):

return session.prepare(select()
         .all()
         .from("local"))
         .bind();

and rebuild. But most probably, it will fail in some other place.

P.S. Really, there are plenty of differences from OSS Cassandra, so a lot of code may not work.