«

Pro Setup

This page is for users who have chosen Datomic Pro and covers getting Datomic Pro as well as running a transactor.

Get Datomic Pro

Datomic Pro is distributed as a zip. You can download the latest version of Datomic Pro here or with this curl command:

    curl https://datomic-pro-downloads.s3.amazonaws.com/1.0.7260/datomic-pro-1.0.7260.zip -O
  

After you download Datomic, unzip it locally. Throughout the documentation, shell commands are run from the root directory of the Datomic install. Change to this directory now, e.g.

cd /home/user/datomic/datomic-pro-1.0.7260

Run a Transactor

This section is for users who have downloaded Datomic Pro and covers running a transactor. Before running a production transactor, you must set up a storage service and configure transactor properties. For local development, you can skip these steps and use Datomic’s included dev storage. Datomic’s dev storage uses an H2 database embedded in the transactor process, with a default configuration that exposes H2 on ports 4334 and 4335.

Starting a Transactor

To start a transactor, run bin/transactor, passing a transactor properties file. This command shows using the sample dev properties file that is included with Datomic.

noslide

bin/transactor config/samples/dev-transactor-template.properties

The transactor is ready once the message “System started” appears on stdout.

Stopping a Transactor

To stop a transactor, kill the transactor process, e.g. by typing Ctrl+C in the shell process where you ran bin/transactor or by sending a kill signal, e.g.

kill $(DATOMIC_PROCESS_ID)

Once you are able to start and stop Datomic processes, you can integrate the peer library with your Java or Clojure project and start using Datomic.