This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new b98922a  [SPARK-27116] Environment tab must sort Hadoop Configuration 
by default
b98922a is described below

commit b98922abf2dadc6cc0620e86daca5d8eb3b105cb
Author: Ajith <ajith2...@gmail.com>
AuthorDate: Mon Mar 11 08:43:49 2019 -0500

    [SPARK-27116] Environment tab must sort Hadoop Configuration by default
    
    ## What changes were proposed in this pull request?
    
    Environment tab in SparkUI do not have Hadoop Configuration sorted. All 
other tables in the same page like Spark Configrations, System Configuration 
etc are sorted by keys by default
    
    ## How was this patch tested?
    
    Manually tested on SparkUI
    
    Closes #24038 from ajithme/sqluisort.
    
    Authored-by: Ajith <ajith2...@gmail.com>
    Signed-off-by: Sean Owen <sean.o...@databricks.com>
---
 core/src/main/scala/org/apache/spark/SparkEnv.scala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/src/main/scala/org/apache/spark/SparkEnv.scala 
b/core/src/main/scala/org/apache/spark/SparkEnv.scala
index 0ac6f08..a5064cc 100644
--- a/core/src/main/scala/org/apache/spark/SparkEnv.scala
+++ b/core/src/main/scala/org/apache/spark/SparkEnv.scala
@@ -438,7 +438,8 @@ object SparkEnv extends Logging {
 
     // Add Hadoop properties, it will not ignore configs including in Spark. 
Some spark
     // conf starting with "spark.hadoop" may overwrite it.
-    val hadoopProperties = hadoopConf.asScala.map(entry => (entry.getKey, 
entry.getValue)).toSeq
+    val hadoopProperties = hadoopConf.asScala
+      .map(entry => (entry.getKey, entry.getValue)).toSeq.sorted
     Map[String, Seq[(String, String)]](
       "JVM Information" -> jvmInformation,
       "Spark Properties" -> sparkProperties,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to