You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Senthil Kumar (Jira)" <ji...@apache.org> on 2021/09/01 17:21:00 UTC

[jira] [Comment Edited] (SPARK-36643) Add more information in ERROR log while SparkConf is modified when spark.sql.legacy.setCommandRejectsSparkCoreConfs is set

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

Senthil Kumar edited comment on SPARK-36643 at 9/1/21, 5:20 PM:
----------------------------------------------------------------

New ERROR message will be as below,

 
{code:java}
scala> spark.conf.set("spark.driver.host", "localhost") 
org.apache.spark.sql.AnalysisException: Cannot modify the value of a Spark config: spark.driver.host, please set spark.sql.legacy.setCommandRejectsSparkCoreConfs as 'false' in order to make change value of Spark config: spark.driver.host .
 at org.apache.spark.sql.errors.QueryCompilationErrors$.cannotModifyValueOfSparkConfigError(QueryCompilationErrors.scala:2336)
 at org.apache.spark.sql.RuntimeConfig.requireNonStaticConf(RuntimeConfig.scala:157)
 at org.apache.spark.sql.RuntimeConfig.set(RuntimeConfig.scala:41)
... 47 elided{code}
 


was (Author: senthh):
New ERROR message will be as below,

 
{code:java}
scala> spark.conf.set("spark.driver.host", "localhost") 
org.apache.spark.sql.AnalysisException: Cannot modify the value of a Spark config: spark.driver.host, please set spark.sql.legacy.setCommandRejectsSparkCoreConfs as 'false' in order to make change value of Spark config: spark.driver.host .
 at org.apache.spark.sql.errors.QueryCompilationErrors$.cannotModifyValueOfSparkConfigError(QueryCompilationErrors.scala:2336)
 at org.apache.spark.sql.RuntimeConfig.requireNonStaticConf(RuntimeConfig.scala:157)
 at org.apache.spark.sql.RuntimeConfig.set(RuntimeConfig.scala:41){code}

 ... 47 elided

> Add more information in ERROR log while SparkConf is modified when spark.sql.legacy.setCommandRejectsSparkCoreConfs is set
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-36643
>                 URL: https://issues.apache.org/jira/browse/SPARK-36643
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.1.2
>            Reporter: Senthil Kumar
>            Priority: Minor
>
> Right now, by default sql.legacy.setCommandRejectsSparkCoreConfs is set as true in Spark 3.* versions int order to avoid changing Spark Confs. But from the error message we get confused if we can not modify/change Spark conf in Spark 3.* or not.
> Current Error Message :
> {code:java}
> Exception in thread "main" org.apache.spark.sql.AnalysisException: Cannot modify the value of a Spark config: spark.driver.host
>  at org.apache.spark.sql.RuntimeConfig.requireNonStaticConf(RuntimeConfig.scala:156)
>  at org.apache.spark.sql.RuntimeConfig.set(RuntimeConfig.scala:40){code}
>  
> So adding little more information( how to modify Spark Conf), in ERROR log while SparkConf is modified when spark.sql.legacy.setCommandRejectsSparkCoreConfs is 'true', will be helpful to avoid confusions.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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