-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-25906][SHELL] Documents '-I' option (from Scala REPL) in spark-shell #22919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,13 @@ rem | |
| rem Figure out where the Spark framework is installed | ||
| call "%~dp0find-spark-home.cmd" | ||
|
|
||
| set _SPARK_CMD_USAGE=Usage: .\bin\spark-shell.cmd [options] | ||
| set LF=^ | ||
|
|
||
|
|
||
| rem two empty lines are required | ||
| set _SPARK_CMD_USAGE=Usage: .\bin\spark-shell.cmd [options]^%LF%%LF%^%LF%%LF%^ | ||
| Scala REPL options:^%LF%%LF%^ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There seems no claver way then this to set newlines in variables in batch files.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Script specific information looks included in |
||
| -I ^<file^> preload ^<file^>, enforcing line-by-line interpretation | ||
|
|
||
| rem SPARK-4161: scala does not assume use of the java classpath, | ||
| rem so we need to add the "-Dscala.usejavacp=true" flag manually. We | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do we define other options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested other options and this one looks only the valid one. I described in PR description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, I didn't find
in the shell script. Where do we define them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh haha. Sorry. That's in
SparkSubmitArguments.printUsageAndExit.thats why I left #22919 (comment)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we also define
-ibehavior here? I think for now this option is also accepted by the REPL.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea .. but
-idoesn't handle implicits like toDF or symbols which are pretty basic ones (unless it's explicitly imported within user's program). I think we should better avoid to document it for now.