Table of Contents
KVLite is a single-node, single Replication Group store. It usually runs in a single process and is used to develop and test client applications. KVLite is installed when you install Oracle NoSQL Database.
You start KVLite by using the kvlite
utility,
which can be found in KVHOME/lib/kvstore.jar
.
If you use this utility without any command line options, then
KVLite will run with the following default values:
The store name is kvstore
.
The hostname is the local machine.
The registry port is 5000
.
The directory where Oracle NoSQL Database data is placed (known as KVROOT) is
./kvroot
.
Logging is not turned on.
The administration process is turned on using port 5001.
This means that any processes that you want to communicate with KVLite can only connect to it on the local host (127.0.0.1) using port 5000. If you want to communicate with KVLite from some machine other than the local machine, then you must start it using non-default values. The command line options are described later in this chapter.
For example:
> java -jar KVHOME/lib/kvstore.jar kvlite
When KVLite has started successfully, it issues one of two statements to stdout, depending on whether it created a new store or is opening an existing store:
Created new kvlite store with args: -root ./kvroot -store <kvstore name> -host <localhost> -port 5000 -admin 5001
or
Opened existing kvlite store with config: -root ./kvroot -store <kvstore name> -host <localhost> -port 5000 -admin 5001
where <kvstore name>
is the name of
the store and <localhost> is the name of the local
host. It takes about 10 - 60 seconds before this message is
issued, depending on the speed of your machine.
Note that you will not get the command line prompt back until you stop KVLite.