这个是配置的母问题,TSDB的redolog,要保证父目录不一样
改成,如下即可。
node1.TSDBRedoLogDir=/ssd/ssd0/fgao/iotPerTsdb/tsdb/node1/redoLog
node2.TSDBRedoLogDir=/ssd/ssd0/fgao/iotPerTsdb/tsdb/node2/redoLog
集群启动时出现如下报错:
Failed to load the configuration file [/hdd/hdd0/fgao/iotPerTsdb/server/clusterDemo/config/cluster.cfg] with error [The 'TSDBRedoLogDir' of datanodes on the same machine cannot be the same, and its parent directory also cannot be the same(e.g. cannot end with '<ALIAS>'). Conflicting setting for node1(localhost): TSDBRedoLogDir=/ssd/ssd0/fgao/iotPerTsdb/tsdbredoLog/node1].
我的配置如下:
node1.TSDBRedoLogDir=/ssd/ssd0/fgao/iotPerTsdb/tsdbredoLog/node1
node2.TSDBRedoLogDir=/ssd/ssd0/fgao/iotPerTsdb/tsdbredoLog/node2