Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8758#discussion_r40491206
  
    --- Diff: sbin/start-history-server.sh ---
    @@ -30,10 +30,11 @@ sbin="`cd "$sbin"; pwd`"
     . "$sbin/spark-config.sh"
     . "$SPARK_PREFIX/bin/load-spark-env.sh"
     
    -if [ $# != 0 ]; then
    +if [ $# != 0 ] && [[ ! "$1" == \-* ]]; then
    --- End diff --
    
    I think this works, though I also wonder if it's possible to parse this in 
`HistoryServerArguments`. Like, check the first non-flag argument after all 
flags have been parsed. Override the dir if present, and emit a warning. I 
haven't looked into it, maybe it's not easy, but worth ruling out.


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