AWS EMR 5.11.0 - Apache Hive on Spark

前端 未结 4 1761
温柔的废话
温柔的废话 2021-01-14 13:46

I am trying to setup Apache Hive on Spark on AWS EMR 5.11.0. Apache Spark Version - 2.2.1 Apache Hive Version - 2.3.2 Yarn logs show below error:

18/01/28 21:55:28

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-14 13:46

    I be able run hive on spark by run it like:

    HIVE_AUX_JARS_PATH=$(find /usr/lib/spark/jars/ -name '*.jar' -and -not -name '*slf4j-log4j12*' -printf '%p:' | head -c-1) hive
    

    Then, before other SQL queries issue:

    SET hive.execution.engine = spark;
    

    To make that persistent

    Add line

    export HIVE_AUX_JARS_PATH=$(find /usr/lib/spark/jars/ -name '*.jar' -and -not -name '*slf4j-log4j12*' -printf '%p:' | head -c-1)
    

    into /home/hadoop/.bashrc

    And in file /etc/hive/conf/hive-site.xml set:

    
      hive.execution.engine
      spark
    
    

提交回复
热议问题