Github user WangTaoTheTonic commented on the pull request:

    https://github.com/apache/spark/pull/3607#issuecomment-66724192
  
    @andrewor14 
    Ehh...You mean the `javaOpts += "-Xmx" + args.amMemory + "m"` in 
`ClientBase.scala`? 
    If you mean so, the args is an ClientArguments object which we initialize 
it in `Client.scala`, and it accepts args contains `--driver-memory` in cluster 
mode while an SparkConf from System Props contains  "spark.yarn.am.memory" 
config in client mode.
    In `ClientArguments.scala`, the amMemory will be assigned with 
`--driver-memory` and replaced with `spark.yarn.am.memory` in client mode. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to