Tuesday, March 11, 2014

Big Data Oracle NoSQL in No Time - Setting up 1x1 Topology Part 3

Big Data Oracle NoSQL in No Time - Setting up 1x1 Topology Part 3

Index
Big Data Oracle NoSQL in No Time - Getting Started Part 1
Big Data Oracle NoSQL in No Time - Startup & Shutdown Part 2

Big Data Oracle NoSQL in No Time - Setting up 1x1 Topology Part 3
Big Data Oracle NoSQL in No Time - Expanding 1x1 to 3x1 Topology Part 4
Big Data Oracle NoSQL in No Time - From 3x1 to 3x3 Topology Part 5
Big Data Oracle NoSQL in No Time - Smoke Testing Part 6
Big Data Oracle NoSQL in No Time - Increasing Throughput Read/Write Part 7
Big Data Oracle NoSQL in No Time - It is time to Upgrade
Big Data Oracle NoSQL in No Time - It is time to Load Data for a Simple Use Case

Now let us quickly create 1x1 Topology

$ export KVBASE=/oraclenosql/lab
$ export KVHOME=$KVBASE/server1/oraclesoftware/kv-2.0.39
$ java -jar $KVHOME/lib/kvstore.jar runadmin -port 5000 -host server1
kv-> configure -name mystore
Store configured: mystore
kv-> plan deploy-datacenter -name "datacenter1" -rf 1 -wait
Executed plan 1, waiting for completion...
Plan 1 ended successfully
kv-> plan deploy-sn -dc dc1 -port 5000 -wait -host server1 -wait
Executed plan 2, waiting for completion...
Plan 2 ended successfully
kv-> plan deploy-admin -sn sn1 -port 5001 -wait
Executed plan 3, waiting for completion...
Plan 3 ended successfully
kv->topology create -name 1x1 -pool AllStorageNodes -partitions 30
Created: 1x1
kv-> plan deploy-topology -name 1x1 -wait
Executed plan 4, waiting for completion...
Plan 4 ended successfully
kv-> show topology
store=mystore  numPartitions=30 sequence=34
  dc=[dc1] name=datacenter1 repFactor=1

  sn=[sn1]  dc=dc1 server1:5000 capacity=1 RUNNING
    [rg1-rn1] RUNNING
          No performance info available

  shard=[rg1] num partitions=30
    [rg1-rn1] sn=sn1

kv->





















So what we have done ?

configure -name mystore
We created a Key Value pair store and we named it as mystore with the configure command.

plan deploy-datacenter -name "datacenter1" -rf 1 -wait
We created a plan which deploys a datacenter and with the replication factor 1. 
Factor one is not advisable for nosql deployment since only one copy of the data is maintained. In the event of failure all the data is lost.
Factor three is a good point to start with a nosql deployment and in this series we will try to achieve it.

plan deploy-sn -dc dc1 -port 5000 -host server1 -wait
We deployed a storage node using the option deploy-sn and to that we passed the data center identification number, the server name and the port number. To know the data center identification number issue with command "show topology" and it will gave us "dc1"

plan deploy-admin -sn sn1 -port 5001 -wait
In addition to the storage node we deployed admin server on this node. For high availability admin server can be configured more and the best to start with is on three nodes.

topology create -name 1x1 -pool AllStorageNodes -partitions 30
We created a topology with name 1x1. To the create topology command we created a storage pool with 30 partitions. Creating a storage pool can also be done with separate command "pool create -name AllStorageNodes". Pay attention to the partitions since it is a one time configuration parameter since this is a demo environment I have given 30 partitions.

plan deploy-topology -name 1x1 -wait
Finally we deployed the topology that we created. Using show topology we can verify the topology.









Popular Posts