To connect Precinct to DataStax Astra perform the following steps.
In Astra’s Dashboard:
- Create a new database
- Create a keyspace called
artifacts
- Create a keyspace called
precinct
- Under “Organization Settings” -> Tokens, select Role -> Administrator User & click “Generate Token”
- Create a JSON file called creds.json with content
{"username":"CLIENT ID","password":"CLIENT SECRET"}
. Replace CLIENT ID
and CLIENT_SECRET
with data created in step 4 - Return to the Astra Dashboard, click on the database created in Step 1.
- Click “Connect”, Select Java then “Download Bundle.”
- Rename the bundle
astra.zip
On each Precinct Node:
- Via SFTP/SCP upload
creds.json
and astra.zip
to /witfooprecinct/astra
- Via SSH or Console: Run
cd /witfooprecinct/astra
then unzip astra.zip
- Via SSH or Console: Run
sudo service superintendent restart
After running the steps above on all Precinct nodes, allow 20-30 minutes for the systems to connect and syncronize.