Orient db分布式数据库配置

时间:2014-07-22 11:03:44

标签: orientdb

我无法使用https://github.com/orientechnologies/orientdb/wiki/Tutorial%3A-setup-a-distributed-database

配置分布式数据库

我正在使用orientdb社区1.7.5版。 节点无法相互连接。我在同一台服务器上配置它,并遵循上面链接中给出的每条指令。

更新: 之前没有任何错误,但是当我尝试时,上次出现此错误。 这里没有任何错误。但是上次我尝试时却得到了以下错误...

00:55:15:315 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] Accepting socket connection from /152.144.227.223:56818 [SocketAcceptor]
2014-07-23 00:55:15:321 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] 2434 accepted socket connection from /152.144.227.223:56818 [TcpIpConnectionManager]
2014-07-23 00:55:16:321 WARN [152.144.227.223]:2434 [orientdb] [3.2.2] Invalid join request from: Address[152.144.227.223]:2435, reason:Incompatible joiners!  -vs- tcp-ip [ClusterService]
2014-07-23 00:55:16:325 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] Connection [Address[152.144.227.223]:2435] lost. Reason: Socket explicitly closed [TcpIpConnection]

还可以在下面找到hazlecase配置。两个节点都相同。节点在同一台机器上。

<network>
        <port auto-increment="true">2434</port>
        <join>
            <multicast enabled="false">
                <multicast-group>235.1.1.1</multicast-group>
                <multicast-port>2434</multicast-port>
            </multicast>
        </join>
        <tcp-ip enabled="true">
        <member>152.144.227.223:2434</member>
        <member>152.144.227.223:2435</member>
        </tcp-ip>
    </network>

tried by changing the port in hazlecast to 152.144.227.223:2424/2425 and got below warning when starting node1.
2014-07-23 01:14:27:157 INFO null [orientdb] [3.2.2] Picked Address[152.144.227.223]:2434, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=2434], bind any local is true [DefaultAddressPicker]
2014-07-23 01:14:27:252 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] Hazelcast Community Edition 3.2.2 (20140527) starting at Address[152.144.227.223]:2434 [system]
2014-07-23 01:14:27:254 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] Copyright (C) 2008-2014 Hazelcast.com [system]
2014-07-23 01:14:27:258 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] Address[152.144.227.223]:2434 is STARTING [LifecycleService]
2014-07-23 01:14:27:424 WARN [152.144.227.223]:2434 [orientdb] [3.2.2] No join method is enabled! Starting standalone. [Node]
2014-07-23 01:14:27:457 INFO [152.144.227.223]:2434 [orientdb] [3.2.2] Address[152.144.227.223]:2434 is STARTED [LifecycleService]

新错误

在两个节点上都低于错误

2014-08-08 16:27:37:309 INFO [192.168.159.134]:2434 [orientdb] [3.2.2] Hazelcast Community Edition 3.2.2 (20140527) starting at Address[192.168.159.134]:2434 [system]
2014-08-08 16:27:37:309 INFO [192.168.159.134]:2434 [orientdb] [3.2.2] Copyright (C) 2008-2014 Hazelcast.com [system]
2014-08-08 16:27:37:356 INFO [192.168.159.134]:2434 [orientdb] [3.2.2] Address[192.168.159.134]:2434 is STARTING [LifecycleService]
2014-08-08 16:27:38:494 WARN [192.168.159.134]:2434 [orientdb] [3.2.2] No join method is enabled! Starting standalone. [Node]
2014-08-08 16:27:38:869 INFO [192.168.159.134]:2434 [orientdb] [3.2.2] Address[192.168.159.134]:2434 is STARTED [LifecycleService]

1 个答案:

答案 0 :(得分:1)

为了能够形成群集,您需要在hazelcast配置的join标记内添加tcp-ip标记。您将解决因无连接方法而面临的错误。您的hazelcast配置文件应如下所示:

    <join>
        <multicast enabled="false">
            <multicast-group>235.1.1.1</multicast-group>
            <multicast-port>2434</multicast-port>
        </multicast>
  <tcp-ip enabled="true">
            <member>152.144.227.223:2434</member>
            <member>152.144.227.223:2435</member>
        </tcp-ip>
    </join>