功能介绍
组件配置项修改后,需要重启对应的服务使配置生效。为确保服务重启过程中,尽量减少或不影响业务运行,可通过滚动重启服务。对于有主备状态的实例,会先重启备实例,再重启主实例。滚动重启时间比普通重启时间久。
- 控制台⽀持重启服务,默认勾选滚动重启方式。滚动重启关闭后所有节点同时重启可能导致服务不可用,请谨慎选择。
- 失败处理策略⽀持两种方式:失败时阻塞等待处理和单节点失败继续处理。
操作步骤
- 登录 TBDS Manager 管理平台,在集群列表中单击对应的集群 ID/名称进⼊集群详情页。
- 若您需要重启整个组件服务,可以在集群服务页,选择需要重启的组件卡片操作 > 重启服务,或者进⼊组件详情页,在页面右上角选择更多操作 > 重启全部服务;若您需要重启某个角色实例,可以在集群服务页,选择需要重启的组件卡片操作 > 角色管理,勾选需要重启的服务角色并单击重启服务。
在组件卡片或组件详情页更多操作中重启服务时,需要选择重启的服务角色、重启方式、是否滚动重启、失败处理策略等。当您选择服务角色为全部时,将重启整个组件。说明:
TBDS 5315版以上支持按机架策略分批进行重启。

在角色管理页中重启服务时,只需要选择重启方式、失败处理策略等。

服务组件支持重启方式:
| 组件 | 服务 | 重启模式 | 描述 | 备注 |
|---|---|---|---|---|
| HDFS | NameNode | 快速重启模式 | 通过 ebcha-daemon.sh stop \| start namenode 进行重启 | - |
| NameNode | 安全重启模式 | 在 HA 集群中,首先在 StandbyNameNode 上做 saveNamespace 操作,然后通过 ebcha-daemon.sh stop \| start namenode 进行重启。非 HA 集群与快速重启模式一致 | 只支持滚动重启 | |
| DataNode | 默认重启模式 | 通过 ebcha-daemon.sh stop \|start datanode 进行重启 | ||
| JournalNode | 默认重启模式 | 通过 ebcha-daemon.sh stop \|start JournalNode 进行重启 | ||
| zkfc | 默认重启模式 | 通过 ebcha-daemon.sh stop \|start zkfc 进行重启 | ||
| YARN | ResourceManager | 默认重启模式 | 通过 sbin/YARN-daemon.sh stop \|start ResourceManager 进行重启 | 只支持滚动重启 |
| NodeManager | 默认重启模式 | 通过 sbin/YARN-daemon.sh stop \|start NodeManager 进行重启 | - | |
| JobHistoryServer | 默认重启模式 | 通过 sbin/YARN-daemon.sh stop\|start HistoryServer 进行重启 | - | |
| TimelineServer | 默认重启模式 | 通过 sbin/YARN-daemon.sh stop \|start TimelineServer 进行重启 | - | |
| HBase | HBaseThrift | 默认重启模式 | 通过 HBase-daemon.sh stop \|start Thrift 进行重启 | - |
| HMaster | 默认重启模式 | 通过 HBase-daemon.sh stop \| start-master 进行重启 | - | |
| HRegionServer | 快速重启模式 | 通过 HBase-daemon.sh stop \| start-regionserver 进行重启 | - | |
| HRegionServer | 安全重启模式 | 通过 graceful_stop.sh --restart --reload 进行重启 | - | |
| Hive | HiveMetaStore | 默认重启模式 | 通过 hcat_server.sh stop \| start进行重启 | - |
| HiveServer2 | 默认重启模式 | 通过 hive-daemon.sh stop-h2 \|start-h2 进行重启 | - | |
| HiveWebHcat | 默认重启模式 | 通过 hcat_server.sh stop \|start 进行重启 | - | |
| Presto | PrestoCoordinator | 默认重启模式 | 通过 bin/launcher stop \| start 进行重启 | 只支持滚动重启 |
| PrestoWorker | 默认重启模式 | 通过 bin/launcher stop \| start 进行重启 | - | |
| ZooKeeper | QuorumPeerMain | 默认重启模式 | 通过 bin/zkServer.sh stop \| start进行重启 | - |
| SPARK | SparkJobHistoryServer | 默认重启模式 | 通过 sbin/stop-history-server.sh\| sbin/start-history-server.sh 进行重启 | - |
| Hue | Hue | 默认重启模式 | 通过 build/env/bin/start.sh 和build/env/bin/stop.sh 进行重启 | - |
| Oozie | Oozie | 默认重启模式 | 通过 oozied.sh stop \| start 进行重启 | - |
| RANGER | Ranger | 默认重启模式 | 通过 sbin/ranger-daemon.sh stop \|start 进行重启 | - |
| Elasticsearch | ESMaster/ESData | 默认重启模式 | bin/elasticsearch-daemon.sh start | |
| Kibana | Kibana | 默认重启模式 | bin/kibana-daemon.sh start | |
| StarRocks | FE | 默认重启模式 | docker stop sr-fe; docker rm sr-fe sh fe/bin/stop_fe_container.sh sh fe/bin/start_fe_container.sh | 前端页面先停止fe 组件 |
| BE | 默认重启模式 | docker stop sr-be; docker rm sr-be sh be/bin/stop_be_container.sh sh be/bin/start_be_container.sh | 前端页面先停止be 组件 | |
| Broker | 默认重启模式 | docker stop sr-broker; docker rm sr-broker sh apache_hdfs_broker/bin/stop_broker_container.sh sh apache_hdfs_broker/bin/start_broker_container.sh | 前端页面先停止broker 组件 |