IoTDB 断电后无法启动 DataNode,日志提示 Meet error while starting up

问题

IoTDB 1.3.2 版本,断电后 IoTDB 的 DataNode 无法启动,日志如下:

java 复制代码
2024-12-16 14:45:41,350 [main] ERROR o.a.i.db.service.DataNode:562 - Meet error while starting up. 
org.apache.iotdb.commons.exception.StartupException: For input string: "���"
  at org.apache.iotdb.db.pipe.progress.SimpleConsensusProgressIndexAssigner.start(SimpleConsensusProgressIndexAssigner.java:69)
  at org.apache.iotdb.db.pipe.agent.runtime.PipeDataNodeRuntimeAgent.preparePipeResources(PipeDataNodeRuntimeAgent.java:75)
  at org.apache.iotdb.db.service.DataNode.preparePipeResources(DataNode.java:950)
  at org.apache.iotdb.db.service.DataNode.prepareResources(DataNode.java:549)
  at org.apache.iotdb.db.service.DataNode.setUp(DataNode.java:599)
  at org.apache.iotdb.db.service.DataNode.active(DataNode.java:560)
  at org.apache.iotdb.db.service.DataNode.doAddNode(DataNode.java:215)
  at org.apache.iotdb.db.service.DataNodeServerCommandLine.run(DataNodeServerCommandLine.java:81)
  at org.apache.iotdb.commons.ServerCommandLine.doMain(ServerCommandLine.java:58)
  at org.apache.iotdb.db.service.DataNode.main(DataNode.java:183)

问题原因

断电时文件系统产生某些意外错误,导致 data/datanode/system/pipe/reboot_times.txt 文件写入内容异常。

解决方案

出现该日志导致无法启动时,区分两种情况进行处置:

  1. 如果系统中不存在 pipe 的使用,手动删除文件 data/datanode/system/pipe/reboot_times.txt 即可。

  2. 如果系统中存在 pipe 的使用,请联系社区开发同学提供安全解决方案(可以参考 https://github.com/apache/iotdb/pull/14594 自行修改源码后启动,或升级最新社区版本 > v1.3.3)。

相关推荐
Cosolar8 小时前
2026年AI Agent技术生态开源项目合集
人工智能·开源·agent·智能体
weixin_397574098 小时前
用自然语言查数据库出图表靠谱吗?一次智能问数实践复盘
数据库
冬奇Lab10 小时前
一天一个开源项目(第113篇):notebooklm-py - 把 Google NotebookLM 变成可编程 API,还能接入 Claude Code
人工智能·google·开源
字节跳动开源10 小时前
veRL 推出开源 Uni-Agent:为通用 Agent 训练打造统一框架
开源
字节跳动开源10 小时前
Viking AI 搜索 CLI 正式发布:会说话,就能做搜索推荐
数据库·人工智能·开源
PAK向日葵11 小时前
我用 C++ 写了一个轻量级 Python 虚拟机,刚刚开源
c++·python·开源
TechWJ11 小时前
数据库在公司内网,出差路上想查数据怎么办?
服务器·数据库·mariadb
少年、潜行11 小时前
【开源】基于STM32的无线姿态检测仪设计
stm32·嵌入式硬件·开源·姿态检测仪
我是一颗柠檬11 小时前
【MySQL全面教学】MySQL事务与ACID Day9(2026年)
数据库·后端·mysql
橙子圆12311 小时前
Redis知识9之集群
数据库·redis·缓存