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

[jira] [Updated] (SPARK-36804) Using the verbose parameter in yarn-cluster mode would cause application submission failure

     [ https://issues.apache.org/jira/browse/SPARK-36804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jianmeng Li updated SPARK-36804:
--------------------------------
    Description: 
If we submit the spark application with the --verbose parameter in yarn mode, we will get the following exception:
{code:java}
Exception in thread "main" java.lang.IllegalArgumentException: Unknown/unsupported param List(--verbose)Exception in thread "main" 
{code}
I check the code, found SparkSubmit invoke YarnClusterApplication with --verbose arguments and ClientArguments used by YarnClusterApplication don't support that argument by now, as a result, IllegalArgumentException is thrown in ClientArguments. I think we can support --verbose in YARN mode to keep consistency with other module

  was:
If we submit the spark application with the --verbose parameter in yarn mode, we will get the following exception:
{code:java}
Exception in thread "main" java.lang.IllegalArgumentException: Unknown/unsupported param List(--verbose)Exception in thread "main" java.lang.IllegalArgumentException: Unknown/unsupported param List(--verbose)
Usage: org.apache.spark.deploy.yarn.Client [options]Options:  --jar JAR_PATH           Path to your application's JAR file (required in YARN cluster                           mode)  --class CLASS_NAME       Name of your application's main class (required)  --primary-py-file        A main Python file  --primary-r-file         A main R file  --arg ARG                Argument to be passed to your application's main class.                           Multiple invocations are possible, each will be passed in order.
 at org.apache.spark.deploy.yarn.ClientArguments.parseArgs(ClientArguments.scala:61) at org.apache.spark.deploy.yarn.ClientArguments.<init>(ClientArguments.scala:31) at org.apache.spark.deploy.yarn.YarnClusterApplication.start(Client.scala:1701) at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:981) at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:185) at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:208) at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:95) at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1069) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1078) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)log4j:WARN No appenders could be found for logger (org.apache.spark.util.ShutdownHookManager).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
{code}
I check the code, found SparkSubmit invoke YarnClusterApplication with --verbose arguments and ClientArguments used by YarnClusterApplication don't support that argument by now, as a result, IllegalArgumentException is thrown in ClientArguments. I think we can support --verbose in YARN mode to keep consistency with other module


> Using the verbose parameter in yarn-cluster mode would cause application submission failure
> -------------------------------------------------------------------------------------------
>
>                 Key: SPARK-36804
>                 URL: https://issues.apache.org/jira/browse/SPARK-36804
>             Project: Spark
>          Issue Type: Bug
>          Components: YARN
>    Affects Versions: 3.1.2
>            Reporter: Jianmeng Li
>            Priority: Minor
>             Fix For: 3.1.3
>
>
> If we submit the spark application with the --verbose parameter in yarn mode, we will get the following exception:
> {code:java}
> Exception in thread "main" java.lang.IllegalArgumentException: Unknown/unsupported param List(--verbose)Exception in thread "main" 
> {code}
> I check the code, found SparkSubmit invoke YarnClusterApplication with --verbose arguments and ClientArguments used by YarnClusterApplication don't support that argument by now, as a result, IllegalArgumentException is thrown in ClientArguments. I think we can support --verbose in YARN mode to keep consistency with other module



--
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