$ file kv-1.1.100.tar.gzWhat is KVLite? It is a single-node, single Replication Group store. It usually runs in a single process and is used to develop and test client applications. It's for test.
kv-1.1.100.tar.gz: gzip compressed data, was "kv-1.1.100.tar", from Unix, last modified: Fri Oct 14 02:39:16 2011
$ tar zxf kv-1.1.100.tar.gz
$ cd kv-1.1.100
$ ls
bin doc examples lib LICENSE.txt README.txt
$ java -jar lib/kvclient-1.1.100.jar
11gR2.1.1.100
A. How to start it? (use run-kvlite.sh script)
$ ./bin/run-kvlite.shstore name (default) =kvstore
Store "kvstore" started.
KVLite (default values):
- The store name is kvstore.
- The hostname is 127.0.0.1.
- The registry port is 5000.
$ grep REGPORT\= bin/run-kvlite.sh
export REGPORT=5000
$ netstat -ltpn | grep 5000- The directory where Oracle NoSQL Database data is placed (known as KVROOT) is ./kvroot.
tcp 0 0 :::5000 :::* LISTEN 2473/java
$ grep KVROOT\= bin/run-kvlite.sh- Logging is not turned on.
export KVROOT=./kvroot
$ ls kvroot
config.xml kvstore security.policy snaboot_0.log snaboot_0.log.lck
- The administration process is not turned on.
B. How to stop it?
use ^C from within the shell where KVLite is running.
C. How to test it? (java version >= 6)
$ javac -g -cp lib/kvclient-1.1.100.jar:examples examples/hello/*.javaI played it from "Getting Started Guides", then just play more:
$ java -cp lib/kvclient-1.1.100.jar:examples hello.HelloBigDataWorld
Hello Big Data World!
$ ./bin/run-kvlite.sh -help
Usage: run-kvlite.sh [-help]
[-logging]
[-store storeName]
[-port port]
[-host hostname]
[-root rootDir]
[-admin adminPort]
-logging enables console logging
-store defaults to kvstore
-port defaults to 5000
-host defaults to localhost
-root defaults to ./kvroot and is created on demand
$ ./bin/run-kvlite.sh -admin 5001 -logging -root TESTD. How to connect interactive mode? (when I use "-admin 5001" at KVLite, I will be able to connect interactive mode at port 5000 and open browser at port 5001 )
*** other screen ***
$ ls TEST
config.xml kvstore security.policy snaboot_0.log snaboot_0.log.lck
$ ./bin/kvctl runadmin -port 5000 -host localhostOpen Browser connect to http://ip:5001
kv-> show admins
admin1: Storage Node sn1, HTTP port 5001
kv-> show store
kvstore
If you review run-kvlite.sh script, you will see "java $LOGGING -cp $LIBDIR/kvstore-1.1.100.jar oracle.kv.util.kvlite.KVLite -root $KVROOT -store $KVSTORE -host $HOSTNAME -port $REGPORT $ADMINPORT".
OK... just fun with it, Oracle NoSQL Database.
No comments:
Post a Comment