部署1個metaserver和2個chunkserver時,它們在3個盒子上運行。在啓動Metaserver服務器時,出現以下錯誤:部署QFS時發生驗證錯誤
06:03: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關閉原因:hello身份驗證錯誤,羣集密鑰或md5sum不匹配套接字錯誤: 06-12-2017 21:05: 48.331 DEBUG - (ChunkServer.cc:438)-1〜大塊服務器0x17cffb0總:1
的metaserver和大塊服務器配置文件是這樣的:
#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不匹配 3.羣集密鑰不匹配:這與我的配置一致
右空格分隔塊服務器MD5SUMS的白名單,即由於工作 –