티스토리 뷰
EMR 5.24로 변경후 hive cli에서 set tez.queue.name
을 실행하여도 큐가 설정되지 않는 문제가 발생하였습니다.
상황
- YARN의 큐 설정을 변경
- 기존 default큐를 제거하고, dynamic, batch로 큐를 설정
- hive CLI에서 큐를 설정하고 작업을 실행하면 오류발생
Caused by: java.util.concurrent.ExecutionException: org.apache.tez.dag.api.TezException: org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application_111122223333_0034 to YARN : Application application_111122223333_0034 submitted by user hadoop to unknown queue: default
원인
- TezSessionState.java의
startSessionAndContainers
메소드를 확인 - 큐이름 설정 주체를 정확하게 확인할 수 없기 때문에 세션에 설정된 큐이름을 초기화하는 과정에서 기본 큐이름인 default로 설정
isSuccessful = true; // sessionState.getQueueName() comes from cluster wide configured queue names. // sessionState.getConf().get("tez.queue.name") is explicitly set by user in a session. // TezSessionPoolManager sets tez.queue.name if user has specified one or use the one from // cluster wide queue names. // There is no way to differentiate how this was set (user vs system). // Unset this after opening the session so that reopening of session uses the correct queue // names i.e, if client has not died and if the user has explicitly set a queue name // then reopened session will use user specified queue name else default cluster queue names. conf.unset(TezConfiguration.TEZ_QUEUE_NAME); return session; } finally { if (isOnThread && !isSuccessful) { closeAndIgnoreExceptions(session); } } }
해결방법
- 하이브의 hive-site.xml에 기본큐를 설정
<configuration>
<property>
<name>tez.queue.name</name>
<value>dynamic</value>
</property>
</configuration>
반응형
'AWS > EMR' 카테고리의 다른 글
[EMR] S3 503 Slow Down 오류 발생시 해결방법 (0) | 2019.12.16 |
---|---|
[EMR] CORE 노드 레이블에 맞는 클러스터 활용 설정 (0) | 2019.11.19 |
[EMR] AWS EMR의 버전 선택 (0) | 2019.11.01 |
[AWS-EMR] EMR의 하이브메타스토어 재시작 (0) | 2019.10.10 |
[AWS-EMR] EMR 일관성 보기 설정 (0) | 2019.08.06 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- S3
- Tez
- 하이브
- emr
- 파이썬
- airflow
- error
- java
- 오류
- HDFS
- yarn
- mysql
- 정올
- build
- oozie
- ubuntu
- 다이나믹
- Hadoop
- Linux
- Python
- SQL
- bash
- SPARK
- 백준
- hbase
- AWS
- 알고리즘
- nodejs
- HIVE
- 하둡
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함