yarn timelineserver를 설정해보겠습니다.
hadoop이 설치되어있음을 가정합니다.
https://developer-woong.tistory.com/36
1. yarn-site.xml 수정
action server: mast02 (yarn 동작서버)
user: hadoop
pwd: /opt/apps/hadoop-3.2.1/etc/hadoop
cmd:
# 해당 컨피그들 추가
vi yarn-site.xml
<property>
<name>yarn.timeline-service.enabled</name>
<value>true</value>
</property>
<property>
<name>yarn.timeline-service.hostname</name>
<value>mast02</value>
</property>
<property>
<name>yarn.timeline-service.http-cross-origin.enabled</name>
<value>true</value>
</property>
<property>
<name> yarn.resourcemanager.system-metrics-publisher.enabled</name>
<value>true</value>
</property>
<property>
<name>yarn.timeline-service.generic-application-history.enabled</name>
<value>true</value>
</property>
<property>
<name>yarn.timeline-service.address</name>
<value>mast02:10200</value>
</property>
<property>
<name>yarn.timeline-service.webapp.address</name>
<value>mast02:8188</value>
</property>
<property>
<name>yarn.timeline-service.webapp.https.address</name>
<value>mast02:8190</value>
</property>
cd /opt/apps/hadoop-3.2.1
2. 설정파일 재 배포 및 yarn restart
action server: mast02 (yarn 동작서버)
user: hadoop
pwd: /opt/apps/hadoop-3.2.1/etc/hadoop
cmd:
# hadoop 클러스터 서버들에게 배포
scp -P 22002 ./capacity-scheduler.xml hadoop@mast01:/opt/apps/hadoop-3.2.1/etc/hadoop
scp -P 22002 ./capacity-scheduler.xml hadoop@mast03:/opt/apps/hadoop-3.2.1/etc/hadoop
scp -P 22002 ./capacity-scheduler.xml hadoop@work01:/opt/apps/hadoop-3.2.1/etc/hadoop
scp -P 22002 ./capacity-scheduler.xml hadoop@work02:/opt/apps/hadoop-3.2.1/etc/hadoop
scp -P 22002 ./capacity-scheduler.xml hadoop@work03:/opt/apps/hadoop-3.2.1/etc/hadoop
# mast02서버 실행(yarn이 동작하는 서버)
sbin/yarn-daemon.sh start timelineserver
결과확인
mast02:8188
반응형
'BigData > Hadoop' 카테고리의 다른 글
yarn-site.xml 튜닝 (0) | 2023.09.07 |
---|---|
yarn capacitiy 스케줄러 설정 (0) | 2023.07.26 |
hadoop 설치 (정리모음버전) (2) | 2023.07.21 |
(하둡 설치) ep10_하둡 맵리듀스, 워드카운트 예제 (hadoop mapreduce wordcount) (2) | 2021.02.25 |
(하둡 설치) ep09_하둡(hadoop) 실행과 종료, 트러블 슈팅 (2) | 2021.02.25 |