zookeeper 3.3.2 на солярис10 x64
- при конфигурации Solaris 10 x64:
zookeeper 3.3.2 install /export/zookeeper-3.3.2
3 zookeeper dir
/export/zookeeper1
/export/zookeeper2
/export/zookeeper3
startup.sh
nohup /jdk1.6.0_16/bin/java -cp zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:conf org.apache.zookeeper.server.quorum.QuorumPeerMain ../zookeeper1/conf/zoo.cfg > nohup1.txt &
nohup /jdk1.6.0_16/bin/java -cp zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:conf org.apache.zookeeper.server.quorum.QuorumPeerMain ../zookeeper2/conf/zoo.cfg > nohup2.txt &
nohup /jdk1.6.0_16/bin/java -cp zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:conf org.apache.zookeeper.server.quorum.QuorumPeerMain ../zookeeper3/conf/zoo.cfg > nohup3.txt &
zookeeper1
zoo.cfg
tickTime = 2000
initLimit = 10
syncLimit = 5
dataDir = /export/zookeeper1/data
dataLogDir = /export/zookeeper1/log
clientPort = 2181
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890
zookeeper2
zoo.cfg
tickTime = 2000
initLimit = 10
syncLimit = 5
dataDir = /export/zookeeper2/data
dataLogDir = /export/zookeeper2/log
clientPort = 2182
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890
zookeeper3
zoo.cfg
tickTime = 2000
initLimit = 10
syncLimit = 5
dataDir = /export/zookeeper3/data
dataLogDir = /export/zookeeper3/log
clientPort = 2183
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890
neo4j 1.4 установить windows 7
код neo4j
String path = "var/graph.ha";
Map<String, String> config = HighlyAvailableGraphDatabase.loadConfigurations("conf/neo4j.cfg");
конф / neo4j.cfg
allow_store_upgrade=true
ha.machine_id = 1
ha.cluster_name = neo4j.ha
ha.server = localhost:6001
ha.zoo_keeper_servers = zoohost:2181,zoohost:2182,zoohost:2183
ha.pull_interval = 600
ha.allow_init_cluster = true
enable_remote_shell = port=1331
сообщение об ошибке запуска neo4j ha:
2011-11-02 12: 46: 44,316 - INFO [main: ZooKeeper @ 373] - Инициирование клиентского подключения, connectString = zoohost: 2181, zoohost: 2182, zoohost: 2183 sessionTimeout = 5000 watcher = org.neo4j.kernel .ha.zookeeper.ZooClient @ 16fa474
2011-11-02 12: 46: 44,674 - ИНФОРМАЦИЯ [main-SendThread (): ClientCnxn $ SendThread @ 1041] - Открытие соединения сокета enter code here
с сервером / zoohost: 2183
java.lang.RuntimeException: база данных графа не назначена и нет причины выключения, может быть, еще не запущена или в середине подкачки master / slave?
в org.neo4j.kernel.HighlyAvailableGraphDatabase.localGraph (HighlyAvailableGraphDatabase.java:282)
в org.neo4j.kernel.HighlyAvailableGraphDatabase.startUp (HighlyAvailableGraphDatabase.java:240)
в org.neo4j.kernel.HighlyAvailableGraphDatabase. (HighlyAvailableGraphDatabase.java:135)
в org.neo4j.kernel.HighlyAvailableGraphDatabase. (HighlyAvailableGraphDatabase.java:111)