티스토리 뷰

2017-02-06 02:11:55,396 ERROR [Thread-117] org.apache.hadoop.yarn.YarnUncaughtExceptionHandler: Thread Thread[Thread-117,5,main] threw an Exception.

java.lang.RuntimeException: org.apache.tez.dag.api.TezUncheckedException: Invalid configuration of tez jars, tez.lib.uris is not defined in the configuration

at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:604)

at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:513)

at org.apache.hadoop.hive.ql.exec.TaskRunner.run(TaskRunner.java:78)

Caused by: org.apache.tez.dag.api.TezUncheckedException: Invalid configuration of tez jars, tez.lib.uris is not defined in the configuration

at org.apache.tez.client.TezClientUtils.setupTezJarsLocalResources(TezClientUtils.java:173)


tez 처리중 위와 같은 오류가 발생하면 설정파일에 tez.lib.uris 를 설정해주면 된다. 

개별 파일을 저정해도 되고, 폴더를 지정해도 된다. 


    <property>

        <name>tez.lib.uris</name>

        <value>/경로/</value>

    </property>


AWS의 EMR이나 같은 클러스터를 이용할 경우 tez.lib.uris 를 설정해도 tez 실행시점에 

다음의 오류로 인하여 작업이 종료되는 경우가 있다. 

이때는 tez.use.cluster.hadoop-libs 를 설정해 주면 된다. 


Stack trace: ExitCodeException exitCode=1: 

at org.apache.hadoop.util.Shell.runCommand(Shell.java:582)

at org.apache.hadoop.util.Shell.run(Shell.java:479)

at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:773)

at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)

at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)

at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)


   <property>

        <name>tez.use.cluster.hadoop-libs</name>

        <value>true</value>

    </property>



반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/01   »
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 29 30 31
글 보관함