[ 
https://issues.apache.org/jira/browse/SPARK-24919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555972#comment-16555972
 ] 

Apache Spark commented on SPARK-24919:
--------------------------------------

User 'gengliangwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/21873

> Scala linter rule for sparkContext.hadoopConfiguration
> ------------------------------------------------------
>
>                 Key: SPARK-24919
>                 URL: https://issues.apache.org/jira/browse/SPARK-24919
>             Project: Spark
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 2.4.0
>            Reporter: Gengliang Wang
>            Priority: Major
>
> In most cases, we should use spark.sessionState.newHadoopConf() instead of 
> sparkContext.hadoopConfiguration, so that the hadoop configurations specified 
> in Spark session
> configuration will come into effect.
> Add a rule matching spark.sparkContext.hadoopConfiguration or 
> spark.sqlContext.sparkContext.hadoopConfiguration to prevent the usage.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to