部署1个metaserver和2个chunkserver,它们在3个盒子上运行。在启动Metaserver服务器时,我收到以下错误:
06-12-2017 21:05:48.331 ERROR - (ChunkServer.cc:1093)192.168.75.135:40935文件系统ID不匹配 06-12-2017 21:05:48.331 ERROR - (ChunkServer.cc:886)chunk server -1 / 192.168.75.135:40935 down reason:hello authentication error,cluster key或md5sum mismatch socket error: 06-12-2017 21:05:48.331 DEBUG - (ChunkServer.cc:438)-1~ChunkServer 0x17cffb0总计:1
metaserver和chunkserver配置文件如下:
#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.群集密钥不匹配:这与我的配置一致
答案 0 :(得分:1)
正如你所指出的那样。在metaServer配置中似乎md5checksum不正确:
您可以重新生成它并再次重试。 他的chunkserver二进制的md5校验和可以通过运行生成; " md5" 修改metaserver配置文件。例如; metaServer.chunkServerMd5sums =
这是必需的: https://github.com/quantcast/qfs/blob/master/conf/MetaServer.prp
"空间分隔的块服务器md5sums的白名单,允许连接到元