Skip to main content

클러스터 재실행하기

Hadoop Eco 사용 시 인스턴스를 재실행하거나 오류가 발생하여 클러스터를 재실행해야 할 경우, 클러스터를 재실행하는 방법은 다음과 같습니다.

  • 추천 실행 순서: Zookeeper → HDFS → YARN → Hive → HBase → History Server → Trino → Kafka → Druid → Redis → Superset → Hue, Zepplin 등

클러스터별 실행 순서는 다음과 같습니다.

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

tip

재부팅이나 오류가 발생하여 컴포넌트가 중지되는 경우 자동으로 3분마다 재시작합니다.
재시작을 원하지 않는 경우 컴포넌트를 명시적으로 종료(stop)하고, 서비스를 disabled 상태로 변경하여야 합니다.

Zookeeper 서비스 종료
sudo systemctl stop zookeeper.service
sudo systemctl disable zookeeper.service

Hadoop

Hadoop Single

Hadoop Single - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터    sudo systemctl restart zookeeper.service
2hadoophdfsnamenode마스터sudo systemctl restart namenode.service
secondary namenode마스터sudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터sudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastore마스터sudo systemctl restart metastore.service
hiveserver2hiveserver2마스터sudo systemctl restart hiveserver2.service
6tezteztez-ui마스터sudo systemctl restart tezui.servicee
7sparkspark-historyserver마스터sudo systemctl restart spark-historyserver.service
8sparkspark-thriftserver마스터sudo systemctl restart spark-thriftserver.service
9기타huehue마스터sudo systemctl restart hue.service
oozieoozie마스터sudo systemctl restart oozie.service
zeppelinzeppelin마스터sudo systemctl restart zeppelin.service

Hadoop HA

Hadoop HA - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터 1, 2, 3       sudo systemctl restart zookeeper.service
2hadoophdfsjournalnode마스터 1, 2, 3sudo systemctl restart journalnode.service
namenode마스터 1, 2sudo systemctl restart namenode.service
zkfc마스터 1, 2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터 1, 2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터 1, 2sudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastore마스터 1, 2, 3sudo systemctl restart metastore.service
hiveserver2hiveserver2마스터 1, 2, 3sudo systemctl restart hiveserver2.service
6tezteztez-ui마스터 3sudo systemctl restart tezui.servicee
7sparkspark-historyserver마스터 3sudo systemctl restart spark-historyserver.service
8sparkspark-thriftserver마스터 3sudo systemctl restart spark-thriftserver.service
9기타huehue마스터 3sudo systemctl restart hue.service
oozieoozie마스터 3sudo systemctl restart oozie.service
zeppelinzeppelin마스터 3sudo systemctl restart zeppelin.service

HBase

HBase Single

HBase Single - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터     sudo systemctl restart zookeeper.service
2hadoophdfsnamenode마스터sudo systemctl restart namenode.service
secondary namenode마스터sudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터sudo systemctl restart jobhistoryserver.service
5hbasehmasterhmaster마스터sudo systemctl restart hmaster.service
regionserverregionserver마스터sudo systemctl restart regionserver.service
6기타huehue마스터sudo systemctl restart hue.service

HBase HA

HBase HA - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터 1, 2, 3        sudo systemctl restart zookeeper.service
2hadoophdfsjournalnode마스터 1, 2, 3sudo systemctl restart journalnode.service
namenode마스터 1, 2sudo systemctl restart namenode.service
zkfc마스터 1, 2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터 1, 2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터 3sudo systemctl restart jobhistoryserver.service
5hbasehmasterhmaster마스터 1, 2, 3sudo systemctl restart hmaster.service
regionserverregionserver워커sudo systemctl restart regionserver.service
6기타huehue마스터 3sudo systemctl restart hue.service

Trino

Trino Single

Trino Single - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터     sudo systemctl restart zookeeper.service
2hadoophdfsnamenode마스터sudo systemctl restart namenode.service
secondary namenode마스터sudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터sudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastore마스터sudo systemctl restart metastore.service
hiveserver2hiveserver2마스터sudo systemctl restart hiveserver2.service
6trinotrinocoordinator마스터sudo systemctl restart trino.service
worker워커sudo systemctl restart trino.service
7기타huehue마스터sudo systemctl restart hue.service
zeppelinzeppelin마스터sudo systemctl restart zeppelin.service

Trino HA

Trino HA - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터 1, 2, 3       sudo systemctl restart zookeeper.service
2hadoophdfsjournalnode마스터 1, 2, 3sudo systemctl restart journalnode.service
namenode마스터 1, 2sudo systemctl restart namenode.service
zkfc마스터 1, 2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터 1, 2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터 3sudo systemctl restart jobhistoryserver.service
5hivemetastorehive metastore마스터 1, 2, 3sudo systemctl restart metastore.service
hiveserver2hiveserver2마스터 1, 2, 3sudo systemctl restart hiveserver2.service
6trinotrinocoordinator마스터 3sudo systemctl restart trino.service
worker워커sudo systemctl restart trino.service
7기타huehue마스터 3sudo systemctl restart hue.service
zeppelinzeppelin마스터 3sudo systemctl restart zeppelin.service

Dataflow

Dataflow Single

Dataflow Single - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터     sudo systemctl restart zookeeper.service
2hadoophdfsnamenode마스터sudo systemctl restart namenode.service
secondary namenode마스터sudo systemctl restart secondarynamenode.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터sudo systemctl restart jobhistoryserver.service
5kafkakafkabroker전체sudo systemctl restart kafka.service
6druidmaster-query servercoordinator-overlord, broker, router마스터sudo systemctl restart druid-master-query-server.service
data serverhistorical, middleManager마스터sudo systemctl restart druid-data-server.service
7redisredisredis마스터sudo systemctl restart redis.service
8기타huehue마스터sudo systemctl restart hue.service
supersetsuperset마스터sudo systemctl restart superset.service

Dataflow HA

Dataflow HA - 클러스터 재실행 명령어

순서분류서비스컴포넌트위치명령어
1zookeeperzookeeperzookeeper마스터 1,2,3     sudo systemctl restart zookeeper.service
2hadoophdfsjournalnode마스터 1,2,3sudo systemctl restart journalnode.service
namenode마스터 1,2sudo systemctl restart namenode.service
zkfc마스터 1,2sudo systemctl restart zkfc.service
datanode워커sudo systemctl restart datanode.service
3hadoopyarnresource manager마스터 1,2sudo systemctl restart resourcemanager.service
nodemanager워커sudo systemctl restart nodemanager.service
timeline server마스터 3sudo systemctl restart timelineserver.service
4hadoopmapredjob historyserver마스터 3sudo systemctl restart jobhistoryserver.service
5kafkakafkabroker전체sudo systemctl restart kafka.service
6druidmaster-broker servercoordinator-overlord, broker마스터 1,2sudo systemctl restart druid-master-broker-server.service
master-query servercoordinator-overlord, broker, router마스터 3sudo systemctl restart druid-master-query-server.service
data serverhistorical, middleManager워커sudo systemctl restart druid-data-server.service
7redisredisredis마스터 3sudo systemctl restart redis.service
8기타huehue마스터 3sudo systemctl restart hue.service
supersetsuperset마스터 3sudo systemctl restart superset.service