我正在3个代理群集上使用kafka版本0.11.0.2,并将一个新磁盘附加到所有代理。重新启动后,以某种方式在代理2上,我开始收到以下错误(将实际路径替换为XXXXX)
npm install webpack@3.x.x
我已经搜索到,发现它是由于关机不干净而导致的,解决方法是删除10MB的索引文件 然后使用以下命令进行清理
Found a corrupted index file due to requirement failed: Corrupt index found, index file (/XXXXX/XXXXX/00000000000000000000.index) has non-zero size but the last offset is 0 which is no larger than the base offset 0.}. deleting /XXXXX/XXXXX/00000000000000000000.timeindex, /XXXXX/XXXXX/00000000000000000000.index, and /XXXXX/XXXXX/00000000000000000000.txnindex and rebuilding index... (kafka.log.Log)
自从运行之后,我开始出现以下错误,并且代理仍然突然被杀死。
find /XXXXX -size 10485760c -name *.index -delete
如何解决此问题?