Skip to content
Snippets Groups Projects
Commit fddd3aee authored by Reynold Xin's avatar Reynold Xin Committed by Yin Huai
Browse files

[SPARK-14871][SQL] Disable StatsReportListener to declutter output

## What changes were proposed in this pull request?
Spark SQL inherited from Shark to use the StatsReportListener. Unfortunately this clutters the spark-sql CLI output and makes it very difficult to read the actual query results.

## How was this patch tested?
Built and tested in spark-sql CLI.

Author: Reynold Xin <rxin@databricks.com>

Closes #12635 from rxin/SPARK-14871.
parent ee6b209a
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,6 @@ import scala.collection.JavaConverters._
import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.internal.Logging
import org.apache.spark.scheduler.StatsReportListener
import org.apache.spark.sql.hive.{HiveContext, HiveUtils}
import org.apache.spark.util.Utils
......@@ -55,7 +54,6 @@ private[hive] object SparkSQLEnv extends Logging {
maybeKryoReferenceTracking.getOrElse("false"))
sparkContext = new SparkContext(sparkConf)
sparkContext.addSparkListener(new StatsReportListener())
hiveContext = new HiveContext(sparkContext)
hiveContext.sessionState.metadataHive.setOut(new PrintStream(System.out, true, "UTF-8"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment