How to suppress INFO messages for spark-sql running on EMR?

前端 未结 3 1896
抹茶落季
抹茶落季 2021-01-31 21:32

I\'m running Spark on EMR as described in Run Spark and Spark SQL on Amazon Elastic MapReduce:

This tutorial walks you through installing and operating Sp

3条回答
  •  既然无缘
    2021-01-31 21:36

    I was able to do this by editing $HOME/spark/conf/log4j.properties as desired, and calling spark-sql with --driver-java-options as follows:

    ./spark/bin/spark-sql --driver-java-options "-Dlog4j.configuration=file:///home/hadoop/spark/conf/log4j.properties"
    

    I could verify that the correct file was being used by adding -Dlog4j.debug to the options:

    ./spark/bin/spark-sql --driver-java-options "-Dlog4j.debug -Dlog4j.configuration=file:///home/hadoop/spark/conf/log4j.properties"
    

提交回复
热议问题