Overview

The whole setup of Oracle NoSQL, in my opinion, is bananas. Each time I tried to set it up, something always failed. Luckily, or because of it, some people (oracle) create a script to facilitate the configuration. The script can be downloaded by cloning this repo:

In this repo, there is a folder called: cluster_setup into which, there is a script called: cluster_setup.sh, they should really come up with a better names :)

Either way, so in our case, we will just configure 2 VMs (using vagrant) and run that setup.

Virtual Machines

I have done it many times, but the setup of the VMs using vagrant is pretty easy. I have created the following Vagrantfile, based on another Vagrantfile for other shenanigans:

Vagrantfile

As, maybe, you will guess, that will create us 2 Virtual machines, with an additional disk which we will create a volume group, which we will split into 3 and which we will mount each LV to a separate File system…geeesh that is a lot. Anywho, after this, we should have 2 VMs, running and all installed…but the Oracle NoSQL of course

Oracle NoSQL

The script pretty much guides you through the entire process, but let's set the steps:

Intro screen (Enter)

Location of the Oracle NoSQL ZIP file (Enter)

Host/IPs of the nodes in the cluster and username to connect (Enter)

Installation path (Enter)

Store name: DefaultStore (I leave my default) (Enter)

A lot of connections and password entering (Unless you configure passwordless authentication…too lazy to do so)

Data directory: Enter disks (Enter)

Log directories (Up to you if you wanna keep logs) (Enter)

Port: 5000 (Enter)

Replication Factor: 1, it is a test after all (Enter)

There might be some issues with the JAVA, don't ask me….Oracle