Skip to main content

Restart cluster

Restart cluster

When using Hadoop Eco, if you need to restart an instance or if an error occurs requiring a cluster restart, follow these steps:

  • Recommended restart order: Zookeeper → HDFS → YARN → Hive → HBase → History Server → Trino → Kafka → Druid → Redis → Superset → Hue, Zeppelin, etc.

The restart order for each cluster is as follows:

  • HA: journalnode > namenode > zkfc > datanode
  • Single: namenode > secondary namenode > datanode

tip

If a reboot or error causes a component to stop, it will automatically restart every 3 minutes.

If you do not want it to restart, you must explicitly stop the component and set the service to disabled.

Stop Zookeeper service
sudo systemctl stop zookeeper.service
sudo systemctl disable zookeeper.service

Hadoop

Hadoop Single

Hadoop Single - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster    sudo systemctl restart zookeeper.service
2hadoophdfsnamenodeMastersudo systemctl restart namenode.service
secondary namenodeMastersudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMastersudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMastersudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMastersudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastoreMastersudo systemctl restart metastore.service
hiveserver2hiveserver2Mastersudo systemctl restart hiveserver2.service
6tezteztez-uiMastersudo systemctl restart tezui.servicee
7sparkspark-historyserverMastersudo systemctl restart spark-historyserver.service
8sparkspark-thriftserverMastersudo systemctl restart spark-thriftserver.service
9기타huehueMastersudo systemctl restart hue.service
oozieoozieMastersudo systemctl restart oozie.service
zeppelinzeppelinMastersudo systemctl restart zeppelin.service

Hadoop HA

Hadoop HA - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster 1, 2, 3       sudo systemctl restart zookeeper.service
2hadoophdfsjournalnodeMaster 1, 2, 3sudo systemctl restart journalnode.service
namenodeMaster 1, 2sudo systemctl restart namenode.service
zkfcMaster 1, 2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMaster 1, 2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMaster 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMaster 1, 2sudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastoreMaster 1, 2, 3sudo systemctl restart metastore.service
hiveserver2hiveserver2Master 1, 2, 3sudo systemctl restart hiveserver2.service
6tezteztez-uiMaster 3sudo systemctl restart tezui.servicee
7sparkspark-historyserverMaster 3sudo systemctl restart spark-historyserver.service
8sparkspark-thriftserverMaster 3sudo systemctl restart spark-thriftserver.service
9기타huehueMaster 3sudo systemctl restart hue.service
oozieoozieMaster 3sudo systemctl restart oozie.service
zeppelinzeppelinMaster 3sudo systemctl restart zeppelin.service

HBase

HBase Single

HBase Single - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster     sudo systemctl restart zookeeper.service
2hadoophdfsnamenodeMastersudo systemctl restart namenode.service
secondary namenodeMastersudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMastersudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMastersudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMastersudo systemctl restart jobhistoryserver.service
5hbasehmasterhmasterMastersudo systemctl restart hmaster.service
regionserverregionserverMastersudo systemctl restart regionserver.service
6기타huehueMastersudo systemctl restart hue.service

HBase HA

HBase HA - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster 1, 2, 3        sudo systemctl restart zookeeper.service
2hadoophdfsjournalnodeMaster 1, 2, 3sudo systemctl restart journalnode.service
namenodeMaster 1, 2sudo systemctl restart namenode.service
zkfcMaster 1, 2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMaster 1, 2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMaster 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMaster 3sudo systemctl restart jobhistoryserver.service
5hbasehmasterhmasterMaster 1, 2, 3sudo systemctl restart hmaster.service
regionserverregionserver워커sudo systemctl restart regionserver.service
6기타huehueMaster 3sudo systemctl restart hue.service

Trino

Trino Single

Trino Single - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster     sudo systemctl restart zookeeper.service
2hadoophdfsnamenodeMastersudo systemctl restart namenode.service
secondary namenodeMastersudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMastersudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMastersudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMastersudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastoreMastersudo systemctl restart metastore.service
hiveserver2hiveserver2Mastersudo systemctl restart hiveserver2.service
6trinotrinocoordinatorMastersudo systemctl restart trino.service
worker워커sudo systemctl restart trino.service
7기타huehueMastersudo systemctl restart hue.service
zeppelinzeppelinMastersudo systemctl restart zeppelin.service

Trino HA

Trino HA - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster 1, 2, 3       sudo systemctl restart zookeeper.service
2hadoophdfsjournalnodeMaster 1, 2, 3sudo systemctl restart journalnode.service
namenodeMaster 1, 2sudo systemctl restart namenode.service
zkfcMaster 1, 2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMaster 1, 2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMaster 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMaster 3sudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastoreMaster 1, 2, 3sudo systemctl restart metastore.service
hiveserver2hiveserver2Master 1, 2, 3sudo systemctl restart hiveserver2.service
6trinotrinocoordinatorMaster 3sudo systemctl restart trino.service
worker워커sudo systemctl restart trino.service
7기타huehueMaster 3sudo systemctl restart hue.service
zeppelinzeppelinMaster 3sudo systemctl restart zeppelin.service

Dataflow

Dataflow Single

Dataflow Single - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster     sudo systemctl restart zookeeper.service
2hadoophdfsnamenodeMastersudo systemctl restart namenode.service
secondary namenodeMastersudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMastersudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMastersudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMastersudo systemctl restart jobhistoryserver.service
5kafkakafkabroker전체sudo systemctl restart kafka.service
6druidmaster-query servercoordinator-overlord, broker, routerMastersudo systemctl restart druid-master-query-server.service
data serverhistorical, middleManagerMastersudo systemctl restart druid-data-server.service
7redisredisredisMastersudo systemctl restart redis.service
8기타huehueMastersudo systemctl restart hue.service
supersetsupersetMastersudo systemctl restart superset.service

Dataflow HA

Dataflow HA - Cluster restart commands

OrderCategoryServiceComponentLocationCommand
1zookeeperzookeeperzookeeperMaster 1,2,3     sudo systemctl restart zookeeper.service
2hadoophdfsjournalnodeMaster 1,2,3sudo systemctl restart journalnode.service
namenodeMaster 1,2sudo systemctl restart namenode.service
zkfcMaster 1,2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource managerMaster 1,2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline serverMaster 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserverMaster 3sudo systemctl restart jobhistoryserver.service
5kafkakafkabroker전체sudo systemctl restart kafka.service
6druidmaster-broker servercoordinator-overlord, brokerMaster 1,2sudo systemctl restart druid-master-broker-server.service
master-query servercoordinator-overlord, broker, routerMaster 3sudo systemctl restart druid-master-query-server.service
data serverhistorical, middleManager워커sudo systemctl restart druid-data-server.service
7redisredisredisMaster 3sudo systemctl restart redis.service
8기타huehueMaster 3sudo systemctl restart hue.service
supersetsupersetMaster 3sudo systemctl restart superset.service