Fork me on GitHub
#beginners
<
2024-01-25
>
Vincent17:01:45

Hi, I added datomic-pro to my deps.edn

com.datomic/datomic-pro {:local/root "datomic-transactor-pro-1.0.7075.jar"}
since downloading the datomic pro .jar file and putting it in the repo/prooject dir But, now I get:
Could not find artifact com.cognitect:tap:jar:0.1.38 in central ()
And I don't know what to do now

silian18:01:14

What other troubleshooting have you tried?

seancorfield18:01:32

@U055PQH9R4M What tutorial/guide are you following? A brief look at the Datomic docs suggest that the Datomic Pro download is a standalone server and what you need in your own code is the com.datomic/peer dependency (so you can talk to it). Have you worked through these instructions? https://docs.datomic.com/pro/getting-started/dev-setup.html

Vincent01:01:53

the peer talks to the database? ahhh i see

nando20:01:08

I’m currently struggling through the same issue and asked for help on the datomic channel. The documentation is fragmented and difficult to follow for a beginner.

nando20:01:11

In any case, what seems to be the correct procedure to follow for local permanent storage is to place the following in deps.edn com.datomic/peer {:mvn/version "1.0.7075"} find the correct properties file in the config/samples directory, modify that as needed, following or guessing your way through the process outlined, and then start the transactor using the properties file.

nando20:01:21

What isn’t clear at all to me is what needs to be on the java classpath for Datomic Pro to work. There are quite a few JAR files in various directories in the distribution. I don’t see anything, yet, in the documentation about what needs to be added to the classpath.

seancorfield20:01:18

Isn't there a script to start the database in the distro?

seancorfield20:01:41

(although I'm puzzled as to why you're not using the Datomic Local setup for local dev?)

Vincent20:01:43

I need to know how to set it up for prod )

seancorfield20:01:29

I would definitely ask in #C03RZMDSH and see if there's a better support channel than Slack that the Datomic team use.

Vincent20:01:08

Cool. I was mostly puzzled about how to talk to it , I think peer does all the talking and transactor does the writing

seancorfield20:01:44

The bin folder in the exploded ZIP file has a bunch of scripts -- so I expect one or more of those starts the DB...?

Nando Breiter21:01:58

@U04V70XH6 I've used the Datomic Local setup in the past. What I'm trying to figure out is how to set datomic up using SQLite as a storage service so that I can do the same as a starting point in production, particularly for a startup.

Nando Breiter21:01:55

The transactor is started using a script in the bin directory. I still need help figuring out how to correctly configure the properties file and understand what JARs need to be placed on the path.

silian21:01:15

To troubleshoot and learn more about classpath voodoo, this might be helpful: https://figwheel.org/docs/classpaths.html

silian21:01:27

Sometimes one thinks one has made something discoverable on the classpath only to realize one hasn't! (Can be very frustrating.)

silian21:01:11

If you are using Leiningen, lein classpath can be helpful to determine if what you think you've placed on the classpath is really there -- or if you're using the version you intended to!

Nando Breiter21:01:01

@U02U1T66REZ Thanks for the http://figwheel.org link. If needed, it seems I could copy the datomic distribution into the project directory and add "datomic" to :paths in deps.edn file as a simple way forward. I'll experiment tomorrow ...

seancorfield22:01:21

I really would not expect you to need anything from the Pro ZIP distro on your classpath -- just the peer library...