Comments (2)
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.
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)
- 请问0.2版本如何使用nacos作为注册中心呢?
- dubbo3.0的什么时候支持?有无计划?2.7.10的也一直没有支持,能不能更新得快一点 HOT 5
- nacos find provider error HOT 1
- 如何关闭injvm的特性 HOT 1
- dubbo3.0的spring boot什么时候出来??? HOT 7
- error setting "dubbo.protocol.port" in appplication.yml HOT 1
- Can not set 'xxx' field 'xxx' to com.sun.proxy.$Proxy72 HOT 1
- spring-boot-test @MockBean 对 dubbo-reference 失效
- Dubbo2.7.8 + Nacos2.0.2整合的时候,生产者启动没问题,但是消费者@DubboReference好像不生效,消费者启动报错
- dubbo3.0starter多网卡情况下会随机选择IP绑定端口而没有绑定到0.0.0.0导致无法访问 HOT 2
- spring-boot 2.5.4,org.apache.dubbo 2.7.8 配置项目为既是服务提供者又是消费者时启动出错 HOT 1
- 重启服务消费者,会无法找到服务提供者 HOT 1
- 歪歪歪,有人吗?为啥github上最新releases才到2.7.9? HOT 2
- Repository Notification
- 此项目似乎已迁移至apache/dubbo/dubbo-spring-boot下,请更新一下文档说明 HOT 3
- consumer use filer,@Reference service is null HOT 3
- 能否通过springcontext 获取到bubbo的bean HOT 4
- 使用组播作为注册中心无法注册服务
- graalvm initializer error HOT 1
- dubbo-spring-boot-starter 的 revision 变量,引起问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo-spring-boot-project.