Fork me on GitHub
#datomic
<
2017-06-15
>
isaac07:06:18

datomic use cassandra, peer got this error

java.lang.IllegalStateException: Attempting to call unbound fn: #'datomic.kv-cassandra/kv-cassandra

chrisblom13:06:06

@isaac you need to add a dependency to you project to use cassandra

isaac13:06:13

your mean this?

isaac13:06:25

Clearly, It is a java lib. Has no Clojure functions

isaac13:06:34

The error told me — can not find a Clojure function, and actually I added this dependencies already.

chrisblom13:06:51

The error you got indicates the datomic.kv-cassandra ns could not be loaded

chrisblom13:06:37

probably because something related to cassandra is missing, but if you added the dep. already it should be able to load. Are you using the correct version?

isaac13:06:13

No, chrisblom. I check the lib again. As I said before. this is an pure java lib, there is no possible contains Clojure functions

isaac13:06:35

But I create this function myself. It’s worked

chrisblom13:06:13

Yes i know, but i'm guessing that datomic.kv-cassandra depends on the lib. being present and the right version. So if something is wrong, datomic.kv-cassandra cannot be loaded, and hence you get the Attempting to call unbound fn: #'datomic.kv-cassandra/kv-cassandra error

marshall13:06:51

@isaac what version of Datomic are you using? what does your datomic depedency declaration look like?

isaac13:06:05

chirsblom, thanks for you hint. this function defined at datomic peer lib.

isaac13:06:38

I just need require the namespace

isaac13:06:06

@marshall I use the version of 0.9.5561

marshall13:06:40

Datomic Pro?

marshall13:06:30

i would expect that error if you were using datomic-free peer depedency

isaac13:06:19

free not support Cassandra

jfntn20:06:48

Adding com.amazonaws/aws-java-sdk-dynamodb to our project causes a lot of aws log messages to end up in our logback output, does anyone know how to exclude this?

Lambda/Sierra20:06:54

@jfntn Edit your logback configuration file, logback.xml to set a different level on the <logger> for the prefix of the AWS library.