YARN 명령
YARN 명령 (YARN Commands)
이 문서는 YARN과 관련된 모든 명령어를 설명합니다. 다음 명령들은 $HADOOP_HOME/bin/yarn 스크립트를 통해 실행됩니다.
출처: 문서
본문
개요 (Overview)
YARN 명령은 크게 두 가지 유형입니다: 사용자 명령(user commands)과 관리자 명령(admin commands). 기본 구문은 다음과 같습니다.
yarn [--config confdir] COMMAND [GENERIC_OPTIONS] [COMMAND_OPTIONS]
사용자 명령 (User Commands)
jar
애플리케이션이나 jar 파일을 실행합니다.
yarn jar <jar> [mainClass] [args...]
application
애플리케이션을 관리합니다.
yarn application -list
yarn application -status <ApplicationId>
yarn application -kill <ApplicationId>
-list: 실행 중인 애플리케이션 목록을 보여줍니다.-status <ApplicationId>: 지정된 애플리케이션의 상태를 보여줍니다.-kill <ApplicationId>: 지정된 애플리케이션을 종료합니다.
applicationattempt
애플리케이션 시도(attempt)를 관리합니다.
yarn applicationattempt -list <ApplicationId>
yarn applicationattempt -status <ApplicationAttemptId>
container
컨테이너를 관리합니다.
yarn container -list <ApplicationAttemptId>
yarn container -status <ContainerId>
node
클러스터의 노드를 관리합니다.
yarn node -list
yarn node -status <NodeId>
-list: 클러스터의 모든 노드 목록을 보여줍니다.-status <NodeId>: 지정된 노드의 상태를 보여줍니다.
queue
클러스터의 큐 정보를 봅니다.
yarn queue -status <QueueName>
logs
애플리케이션의 컨테이너 로그를 가져옵니다.
yarn logs -applicationId <ApplicationId>
classpath / version
yarn classpath: YARN에 필요한 classpath를 출력합니다.yarn version: YARN 버전을 출력합니다.
관리자 명령 (Admin Commands)
rmadmin
ResourceManager를 관리합니다.
yarn rmadmin -refreshQueues
yarn rmadmin -refreshNodes
yarn rmadmin -getServiceState <ServiceId>
yarn rmadmin -transitionToActive <ServiceId>
yarn rmadmin -transitionToStandby <ServiceId>
-refreshQueues: 큐 설정을 다시 로드합니다.-refreshNodes: 노드 목록 설정을 다시 로드합니다.-getServiceState <ServiceId>: 지정된 서비스의 상태(active/standby)를 보여줍니다.-transitionToActive <ServiceId>: 지정된 서비스를 active로 전환합니다.-transitionToStandby <ServiceId>: 지정된 서비스를 standby로 전환합니다.
daemonlog
데몬의 로그 레벨을 가져오거나 설정합니다.
yarn daemonlog -getlevel <host:port> <name>
yarn daemonlog -setlevel <host:port> <name> <level>
timelineserver
Timeline Server를 시작합니다.
yarn timelineserver
sharedcachemanager
Shared Cache Manager를 시작합니다.
yarn sharedcachemanager
proxyserver
웹 애플리케이션 프록시 서버를 시작합니다.
yarn proxyserver
더 알아보기 (Learn more)
- 원문: 문서