部署 1 个元服务器和 2 个块服务器,它们在 3 个盒子上运行。在启动 Metaserver 服务器时,我收到以下错误:
06-12-2017 21:05:48.331 错误 - (ChunkServer.cc:1093) 192.168.75.135:40935 文件系统 ID 不匹配 06-12-2017 21:05:48.331 错误 - (ChunkServer.cc:886) 块服务器 - 1/192.168.75.135:40935 down 原因:hello 身份验证错误、集群密钥或 md5sum 不匹配套接字错误:06-12-2017 21:05:48.331 DEBUG - (ChunkServer.cc:438) -1 ~ChunkServer 0x17cffb0 总计:1
metaserver 和 chunkserver 的配置文件如下:</p>
#metaServer
metaServer.clientPort = 20000
metaServer.chunkServerPort = 20100
metaServer.rackPrefixes = 192.168.75.133 1 192.168.75.135 2
metaServer.createEmptyFs = 1
metaServer.cpDir = /home/nevihs/qfsbase/meta/checkpoints
metaServer.logDir = /home/nevihs/qfsbase/meta/logs
metaServer.clusterKey = Qfs
metaServer.chunkServerMd5sums = 6d99c0d6fdac176eb3147c59276a6788
#chunkServer1
chunkServer.metaServer.hostname = 192.168.75.133
chunkServer.metaServer.port = 20100
chunkServer.clientPort = 21001
chunkServer.clusterKey = Qfs
chunkServer.chunkDir = /home/nevihs/qfsbase/chunk1/chunkdir11
#chunkServer2
chunkServer.metaServer.hostname = 192.168.75.125
chunkServer.metaServer.port = 20100
chunkServer.clientPort = 21002
chunkServer.clusterKey = Qfs
chunkServer.chunkDir = /home/nevihs/qfsbase/chunk2/chunkdir21
根据日志,它建议了三件事。1.文件ID不匹配:这对我来说是正确的。2. md5checksum mismatch 3. cluster key mismatch:这个和我的配置一致