Giter Site home page Giter Site logo

Comments (2)

zuoliang0 avatar zuoliang0 commented on July 22, 2024

zookeeper配置:

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=E:\java\zookeeper-3.4.11\data1
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

zookeeper日志:

C:\WINDOWS\system32>call "H:\Java\jdk1.8.0_66"\bin\java "-Dzookeeper.log.dir=E:\java\zookeeper-3.4.11\bin\.." "-Dzookeeper.root.logger=INFO,CONSOLE" -cp "E:\java\zookeeper-3.4.11\bin\..\build\classes;E:\java\zookeeper-3.4.11\bin\..\build\lib\*;E:\java\zookeeper-3.4.11\bin\..\*;E:\java\zookeeper-3.4.11\bin\..\lib\*;E:\java\zookeeper-3.4.11\bin\..\conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "E:\java\zookeeper-3.4.11\bin\..\conf\zoo.cfg"
2018-02-22 09:54:21,140 [myid:] - INFO  [main:QuorumPeerConfig@136] - Reading configuration from: E:\java\zookeeper-3.4.11\bin\..\conf\zoo.cfg
2018-02-22 09:54:21,234 [myid:] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2018-02-22 09:54:21,234 [myid:] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2018-02-22 09:54:21,234 [myid:] - INFO  [main:DatadirCleanupManager@101] - Purge task is not scheduled.
2018-02-22 09:54:21,249 [myid:] - WARN  [main:QuorumPeerMain@116] - Either no config or no quorum defined in config, running  in standalone mode
2018-02-22 09:54:21,546 [myid:] - INFO  [main:QuorumPeerConfig@136] - Reading configuration from: E:\java\zookeeper-3.4.11\bin\..\conf\zoo.cfg
2018-02-22 09:54:21,546 [myid:] - INFO  [main:ZooKeeperServerMain@98] - Starting server
2018-02-22 09:54:21,843 [myid:] - INFO  [main:Environment@100] - Server environment:zookeeper.version=3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0, built on 11/01/2017 18:06 GMT
2018-02-22 09:54:21,843 [myid:] - INFO  [main:Environment@100] - Server environment:host.name=192.168.8.41
2018-02-22 09:54:21,843 [myid:] - INFO  [main:Environment@100] - Server environment:java.version=1.8.0_66
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:java.vendor=Oracle Corporation
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:java.home=H:\Java\jdk1.8.0_66\jre
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:java.class.path=E:\java\zookeeper-3.4.11\bin\..\build\classes;E:\java\zookeeper-3.4.11\bin\..\build\lib\*;E:\java\zookeeper-3.4.11\bin\..\zookeeper-3.4.11.jar;E:\java\zookeeper-3.4.11\bin\..\lib\audience-annotations-0.5.0.jar;E:\java\zookeeper-3.4.11\bin\..\lib\jline-0.9.94.jar;E:\java\zookeeper-3.4.11\bin\..\lib\log4j-1.2.16.jar;E:\java\zookeeper-3.4.11\bin\..\lib\netty-3.10.5.Final.jar;E:\java\zookeeper-3.4.11\bin\..\lib\slf4j-api-1.6.1.jar;E:\java\zookeeper-3.4.11\bin\..\lib\slf4j-log4j12-1.6.1.jar;E:\java\zookeeper-3.4.11\bin\..\conf
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:java.library.path=H:\Java\jdk1.8.0_66\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;H:\Java\jdk1.8.0_66\bin;C:\Program Files\TortoiseSVN\bin;E:\java\maven3.39\bin;C:\Program Files\nodejs\;E:\Program Files\Git\bin;E:\Program Files\Redis\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;E:\Program Files\Geth;E:\java\apache-ant-1.9.9\bin;E:\Program Files\adb;C:\Users\DELL\AppData\Local\Microsoft\WindowsApps;C:\Users\DELL\AppData\Roaming\npm;E:\Program Files\gradle-3.4.1\bin;.
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:java.io.tmpdir=C:\Users\DELL\AppData\Local\Temp\
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:java.compiler=<NA>
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:os.name=Windows 10
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:os.arch=amd64
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:os.version=10.0
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:user.name=DELL
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:user.home=C:\Users\DELL
2018-02-22 09:54:21,859 [myid:] - INFO  [main:Environment@100] - Server environment:user.dir=C:\WINDOWS\system32
2018-02-22 09:54:21,921 [myid:] - INFO  [main:ZooKeeperServer@825] - tickTime set to 2000
2018-02-22 09:54:21,921 [myid:] - INFO  [main:ZooKeeperServer@834] - minSessionTimeout set to -1
2018-02-22 09:54:21,921 [myid:] - INFO  [main:ZooKeeperServer@843] - maxSessionTimeout set to -1
2018-02-22 09:54:22,218 [myid:] - INFO  [main:ServerCnxnFactory@117] - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory
2018-02-22 09:54:22,218 [myid:] - INFO  [main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:2181
2018-02-22 09:55:55,423 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52090
2018-02-22 09:55:55,548 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 09:55:55,548 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52090 (no session established for client)
2018-02-22 09:56:00,400 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52095
2018-02-22 09:56:00,400 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 09:56:00,400 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52095 (no session established for client)
2018-02-22 09:56:05,452 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52100
2018-02-22 09:56:05,452 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 09:56:05,452 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52100 (no session established for client)
2018-02-22 09:56:10,406 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52107
2018-02-22 09:56:10,406 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 09:56:10,406 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52107 (no session established for client)
2018-02-22 10:10:22,143 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /127.0.0.1:52582
2018-02-22 10:10:22,159 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@938] - Client attempting to establish new session at /127.0.0.1:52582
2018-02-22 10:10:22,159 [myid:] - INFO  [SyncThread:0:FileTxnLog@209] - Creating new log file: log.1
2018-02-22 10:10:22,221 [myid:] - INFO  [SyncThread:0:ZooKeeperServer@683] - Established session 0x10000386e6b0000 with negotiated timeout 30000 for client /127.0.0.1:52582
2018-02-22 10:17:09,939 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52914
2018-02-22 10:17:10,017 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 10:17:10,017 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52914 (no session established for client)
2018-02-22 10:17:14,921 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52919
2018-02-22 10:17:14,921 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 10:17:14,921 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52919 (no session established for client)
2018-02-22 10:17:19,972 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52924
2018-02-22 10:17:19,972 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 10:17:19,972 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52924 (no session established for client)
2018-02-22 10:17:24,941 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52930
2018-02-22 10:17:24,941 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 10:17:24,941 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52930 (no session established for client)
2018-02-22 10:17:29,983 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52935
2018-02-22 10:17:29,983 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 10:17:29,983 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52935 (no session established for client)
2018-02-22 10:17:34,954 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52940
2018-02-22 10:17:34,954 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@383] - Exception causing close of session 0x0: Len error -625229312
2018-02-22 10:17:34,954 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1040] - Closed socket connection for client /192.168.8.41:52940 (no session established for client)
2018-02-22 10:17:49,987 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /192.168.8.41:52948

from dubbo-spring-boot-project.

jiaopy avatar jiaopy commented on July 22, 2024

alter dubbo.registry.address = 127.0.0.1:2181 to
dubbo.registry.address = zookeeper://127.0.0.1:2181
and add pom

		<dependency>
			<groupId>com.github.sgroschupf</groupId>
			<artifactId>zkclient</artifactId>
			<version>0.1</version>
		</dependency>

from dubbo-spring-boot-project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.