Skip to content

Setup Database Command

Jake Swenson edited this page Feb 16, 2016 · 1 revision

Here are all the supported options:

$ docker run -it paradoxical/cassieq setup-db --help
Container service running with args: setup-db --help
running ... java -Djava.library.path=/data/lib -cp :/data/lib/cassieq-core-0.11-SNAPSHOT-rcc9c0f2_dev.jar io.paradoxical.cassieq.ServiceApplication setup-db --help
usage: java -jar cassieq-core-0.11-SNAPSHOT-rcc9c0f2_dev.jar
       setup-db [--config [FILE]] [-i IP] [-u USERNAME] [-p PASSWORD] [--dontCreateKeyspace] [-k KEYSPACE] [--port PORT] [-v DATABASEVERSION] [--recreate] [-h]

Initializes the cassandra database

optional arguments:
  --config [FILE]        application configuration file (default: /data/conf/configuration.yml)
  -i IP, --ip IP         Cassandra cluster IP
  -u USERNAME, --userName USERNAME
                         Cassandra DB user name
  -p PASSWORD, --password PASSWORD
                         Cassandra DB password
  --dontCreateKeyspace   Use to disable keyspace creation (default: true)
  -k KEYSPACE, --keyspace KEYSPACE
                         the keyspace to create
  --port PORT            The port to connect to cassandra on (default: 9042)
  -v DATABASEVERSION, --databaseVersion DATABASEVERSION
                         The database version (default: 0)
  --recreate             weather or not to recreate the keyspace (default: false)
  -h, --help             show this help message and exit

Clone this wiki locally