This discussion is archived
0 Replies Latest reply: Dec 19, 2012 4:03 PM by 957363 RSS

TroubleShooting--Configuring the KVStore using script faild

957363 Newbie
Currently Being Moderated
Wan to share my one TroubleShooting when installing Oracle NoSQL 11.2:

I use three nodes VMs to create NoSQL database.
192.168.56.201 2048 M memory -> OEL5.7 java version 1.7
192.168.56.202 *512* M memory -> OEL5.7 java version 1.7
192.168.56.203 *512* M memory -> OEL5.7 java version 1.7

On 201
export KVHOME=/u01/app/nosql/kv-2.0.23
mkdir -p /u01/app/KVROOT
java -jar $KVHOME/lib/kvstore-2.0.23.jar makebootconfig -root /u01/app/KVROOT -port 5000 -admin 5001 -host 192.168.56.201 -harange 5010,5020
nohup java -jar $KVHOME/lib/kvstore-2.0.23.jar start -root /u01/app/KVROOT&


On 202
export KVHOME=/u01/app/nosql/kv-2.0.23
mkdir -p /u01/app/KVROOT
java -jar $KVHOME/lib/kvstore-2.0.23.jar makebootconfig -root /u01/app/KVROOT -port 5000 -host 192.168.56.202 -harange 5010,5020
nohup java -jar $KVHOME/lib/kvstore-2.0.23.jar start -root /u01/app/KVROOT&

On 203
export KVHOME=/u01/app/nosql/kv-2.0.23
mkdir -p /u01/app/KVROOT
java -jar $KVHOME/lib/kvstore-2.0.23.jar makebootconfig -root /u01/app/KVROOT -port 5000 -host 192.168.56.203 -harange 5010,5020
nohup java -jar $KVHOME/lib/kvstore-2.0.23.jar start -root /u01/app/KVROOT&

Check: OK
[oracle@192 ~]$ jps -m
13447 ManagedService -root /u01/app/KVROOT -class Admin -service BootstrapAdmin.5000 -config config.xml
13481 Jps -m
13379 kvstore-2.0.23.jar start -root /u01/app/KVROOT
[oracle@192 ~]$ java -jar /u01/app/nosql/kv-1.2.123/lib/kvstore-1.2.123.jar ping -port 5000 -host 192.168.56.202
SNA at hostname: 192.168.56.202, registry port: 5000 is not registered.
No further information is available
[oracle@192 ~]$ java -jar /u01/app/nosql/kv-1.2.123/lib/kvstore-1.2.123.jar ping -port 5000 -host 192.168.56.203
SNA at hostname: 192.168.56.203, registry port: 5000 is not registered.
No further information is available

Script:
### Begian Script ###
configure -name kvstore
plan deploy-datacenter -name "kvstore DC" -rf 3 -wait
plan deploy-sn -dc dc1 -host 192.168.56.201 -port 5000 -wait
plan deploy-admin -sn sn1 -port 5001 -wait
pool create -name kvstorePool
pool join -name kvstorePool -sn sn1
plan deploy-sn -dc dc1 -host 192.168.56.202 -port 5000 -wait
pool join -name kvstorePool -sn sn2
plan deploy-sn -dc dc1 -host 192.168.56.203 -port 5000 -wait
pool join -name kvstorePool -sn sn3
topology create -name kvstoretopo -pool kvstorePool -partitions 300
plan deploy-topology -name kvstoretopo -wait
exit
### End Script ###

Run configure kvstore:
java -jar /u01/app/nosql/kv-2.0.23/lib/kvstore-2.0.23.jar runadmin -port 5000 -host 192.168.56.201 load -file /u01/app/nosql/kv-2.0.23/script

Result:
[oracle@192 ~]$ ./create_2.0.sh
Store configured: kvstore
Executed plan 1, waiting for completion...
Plan 1 ended successfully
Executed plan 2, waiting for completion...
Plan 2 ended successfully
Executed plan 3, waiting for completion...
Plan 3 ended successfully

Added Storage Node(s) [sn1] to pool kvstorePool
Executed plan 4, waiting for completion...
Plan 4 ended successfully
Added Storage Node(s) [sn2] to pool kvstorePool
Executed plan 5, waiting for completion...
Plan 5 ended successfully
Added Storage Node(s) [sn3] to pool kvstorePool
Created: kvstoretopo
Executed plan 6, waiting for completion...
Plan 6 ended with errors. Use "show plan -id 6" for more information

Show plan –id 6:
[oracle@192 ~]$ java -jar /u01/app/nosql/kv-2.0.23/lib/kvstore-2.0.23.jar runadmin -port 5000 -host 192.168.56.201
kv-> show plan -id 6
Plan Deploy Topo (6)
State: ERROR
Attempt number: 1
Started: 2012-12-19 06:14:38 UTC
Ended: 2012-12-19 06:20:40 UTC
Plan failures:
Failure 1: 7/NewNthRNParameters failed.: kvstore:rg1-rn1:ADMIN
Total tasks: 13
Successful: 6
Failed: 1
Not started: 6

Failures: Task 7 ERROR at 2012-12-19 06:20:40 UTC: NewNthRNParameters: 7/NewNthRNParameters failed.: kvstore:rg1-rn1:ADMIN: java.rmi.NotBoundException: kvstore:rg1-rn1:ADMIN
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:136)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:409)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:267)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:377)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at oracle.kv.impl.util.registry.RegistryUtils.getInterface(RegistryUtils.java:264)
at oracle.kv.impl.util.registry.RegistryUtils.getRepNodeAdmin(RegistryUtils.java:250)
at oracle.kv.impl.admin.plan.task.NewNthRNParameters.doWork(NewNthRNParameters.java:67)
at oracle.kv.impl.admin.plan.task.SingleJobTask$1.call(SingleJobTask.java:41)
at oracle.kv.impl.admin.plan.task.SingleJobTask$1.call(SingleJobTask.java:38)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Tasks not started
Task UpdateNthRNHelperHost
Task NewNthRNParameters
Task UpdateNthRNHelperHost
Task NewNthRNParameters
Task BroadcastTopo
Task AddPartitions totalPartitions = 300


It failed!!!

then I changed the memory from 512M to 1024M.
and got the rigth result.

[oracle@192 ~]$ ./create_2.0.sh
Store configured: kvstore
Executed plan 1, waiting for completion...
Plan 1 ended successfully
Executed plan 2, waiting for completion...
Plan 2 ended successfully
Executed plan 3, waiting for completion...
Plan 3 ended successfully

Added Storage Node(s) [sn1] to pool kvstorePool
Executed plan 4, waiting for completion...
Plan 4 ended successfully
Added Storage Node(s) [sn2] to pool kvstorePool
Executed plan 5, waiting for completion...
Plan 5 ended successfully
Added Storage Node(s) [sn3] to pool kvstorePool
Created: kvstoretopo
Executed plan 6, waiting for completion...
Plan 6 ended successfully

Linou