-
- Downloads
[SPARK-13626][CORE] Avoid duplicate config deprecation warnings.
Three different things were needed to get rid of spurious warnings: - silence deprecation warnings when cloning configuration - change the way SparkHadoopUtil instantiates SparkConf to silence warnings - avoid creating new SparkConf instances where it's not needed. On top of that, I changed the way that Logging.scala detects the repl; now it uses a method that is overridden in the repl's Main class, and the hack in Utils.scala is not needed anymore. This makes the 2.11 repl behave like the 2.10 one and set the default log level to WARN, which is a lot better. Previously, this wasn't working because the 2.11 repl triggers log initialization earlier than the 2.10 one. I also removed and simplified some other code in the 2.11 repl's Main to avoid replicating logic that already exists elsewhere in Spark. Tested the 2.11 repl in local and yarn modes. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #11510 from vanzin/SPARK-13626.
Showing
- core/src/main/scala/org/apache/spark/Logging.scala 6 additions, 6 deletionscore/src/main/scala/org/apache/spark/Logging.scala
- core/src/main/scala/org/apache/spark/SparkConf.scala 19 additions, 4 deletionscore/src/main/scala/org/apache/spark/SparkConf.scala
- core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala 1 addition, 1 deletion.../main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
- core/src/main/scala/org/apache/spark/util/Utils.scala 0 additions, 9 deletionscore/src/main/scala/org/apache/spark/util/Utils.scala
- repl/scala-2.10/src/main/scala/org/apache/spark/repl/Main.scala 6 additions, 1 deletion...cala-2.10/src/main/scala/org/apache/spark/repl/Main.scala
- repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala 7 additions, 25 deletions...cala-2.11/src/main/scala/org/apache/spark/repl/Main.scala
- repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala 2 additions, 2 deletions...2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala 4 additions, 0 deletions...rc/main/scala/org/apache/spark/sql/hive/HiveContext.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala 1 addition, 1 deletion...ala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala 7 additions, 4 deletions...g/apache/spark/sql/hive/client/IsolatedClientLoader.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveCatalogSuite.scala 3 additions, 2 deletions...st/scala/org/apache/spark/sql/hive/HiveCatalogSuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/client/VersionsSuite.scala 6 additions, 1 deletion...cala/org/apache/spark/sql/hive/client/VersionsSuite.scala
Loading
Please register or sign in to comment