본문 바로가기
빅데이터/spark

[spark] org.apache.spark.sql.AnalysisException: java.lang.RuntimeException: org.apache.tez.dag.api.TezUncheckedException: Invalid configuration of tez jars, tez.lib.uris is not defined in the configuration; 오류 해결 방법

by hs_seo 2019. 11. 20.

Spark SQL을 이용할 때 다음의 오류가 발생하는 경우 tez 환경 설정을 넣어주면 됩니다.

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

설정

<property>  
    <name>tez.lib.uris</name>  
    <value>hdfs:///apps/tez/tez.tar.gz</value>  
</property>  
<property>  
    <name>tez.use.cluster.hadoop-libs</name>  
    <value>true</value>  
</property>
반응형