Issue in inserting index data in remote mode

19 views
Skip to first unread message

PRAMIT DAS

unread,
Mar 17, 2015, 2:54:18 AM3/17/15
to orient-...@googlegroups.com
 

  Hi,
   
   I am obtaining the following error stack trace while trying to insert index in remote mode.
   Orientdb version : 2.0.5 , Orientdb-community : 2.0.5

   The stack trace :
   orientdb> connect remote:localhost/TRIAL admin admin

Connecting to database [remote:localhost/TRIAL] with user 'admin'...OK

DISTRIBUTED CONFIGURATION:
{
  "members": [{
      "id": "a65060a8-7f27-41ed-922c-70503485c416",
      "name": "testB",
      "startedOn": "2015-03-17 12:11:36",
      "listeners": [{"protocol":"ONetworkProtocolBinary","listen":"192.168.220.24:2425"},{"protocol":"ONetworkProtocolHttpDb","listen":"192.168.220.24:2481"}],
      "databases": []
      },{
      "id": "2952a873-3ccf-4f9c-bd7b-4785330fb269",
      "name": "testA",
      "startedOn": "2015-03-17 12:06:41",
      "listeners": [{"protocol":"ONetworkProtocolBinary","listen":"192.168.220.24:2424"},{"protocol":"ONetworkProtocolHttpDb","listen":"192.168.220.24:2480"}],
      "databases": []
      },{
      "id": "fb34b6d2-f946-45c9-a0da-7dcaa2dc1f7d",
      "name": "testC",
      "startedOn": "2015-03-17 12:17:18",
      "listeners": [{"protocol":"ONetworkProtocolBinary","listen":"192.168.220.24:2426"},{"protocol":"ONetworkProtocolHttpDb","listen":"192.168.220.24:2482"}],
      "databases": []
      }
  ],
  "localName": "_hzInstance_1_orientdb",
  "localId": "2952a873-3ccf-4f9c-bd7b-4785330fb269"
}
orientdb {db=TRIAL}> insert into index:dictionary (key,rid) values ('test', #12:1)

Error: com.orientechnologies.orient.server.distributed.ODistributedException: Quorum 3 not reached for request (id=37 from=testA task=command_sql(insert into index:dictionary (key,rid) values
 - testB: {rid:#12:1,key:test}
 - testC: {rid:#12:1,key:test}
Received: {testA={rid:#12:1,key:test}, testC={rid:#12:1,key:test}, testB={rid:#12:1,key:test}}


...... my hazelcast.xml


      <?xml version="1.0" encoding="UTF-8"?>
    <!-- ~ Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved. ~
        ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may
        not use this file except in compliance with the License. ~ You may obtain
        a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~
        ~ Unless required by applicable law or agreed to in writing, software ~ distributed
        under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES
        OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for
        the specific language governing permissions and ~ limitations under the License. -->

    <hazelcast
    xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.0.xsd"
    xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <group>
            <name>orientdb</name>
            <password>orientdb</password>
        </group>
        <network>
            <port auto-increment="false">2434</port>
            <join>
                <multicast enabled="false">
                    <multicast-group>235.1.1.1</multicast-group>
                    <multicast-port>2434</multicast-port>
                </multicast>
    <tcp-ip enabled="true">
         <member>XXX.XXX.XXX.XX:2434</member>
         <member>XXX.XXX.XXX.XX:2435</member>
         <member>XXX.XXX.XXX.XX:2436</member>
    </tcp-ip>
            </join>
        </network>
        <executor-service>
            <pool-size>16</pool-size>
        </executor-service>
    </hazelcast>



..... The default-distributed-db-config.json


    {
    "autoDeploy": true,
    "hotAlignment": false,
    "executionMode": "undefined",
    "readQuorum": 1,
    "writeQuorum": 2,
    "failureAvailableNodesLessQuorum": false,
    "readYourWrites": true,
    "clusters": {
        "internal": {
        },
        "index": {
        },
        "*": {
            "servers" : ["<NEW_NODE>"]
        }
    }
}

....an early response will be highly appreciated ..

  Thanks,
  Pramit Das

Reply all
Reply to author
Forward
0 new messages