-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42656][CONNECT][Followup] Spark Connect Shell #40305
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
Conversation
|
If this PR accepted then no need to merge #40303 as this PR override the changes needed there. |
hvanhovell
left a 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.
LGTM - good stuff
### What changes were proposed in this pull request? Add spark connect shell to start the spark shell with spark connect enabled. Added "-Pconnect" to build the spark connect in the distributions. Simplified the dev shell scripts with "-Pconnect" command. ### Why are the changes needed? Allow users to play with spark connect easily. ### Does this PR introduce _any_ user-facing change? Yes. Added a new shell script and "-Pconnect" build option. ### How was this patch tested? Manually tested. Closes #40305 from zhenlineo/connect-shell. Authored-by: Zhen Li <[email protected]> Signed-off-by: Herman van Hovell <[email protected]> (cherry picked from commit 2e7207f) Signed-off-by: Herman van Hovell <[email protected]>
|
Merging. |
| sparkContext = sparkSession.sparkContext | ||
| sparkSession | ||
| } catch { | ||
| case e: ClassNotFoundException if isShellSession && e.getMessage.contains( |
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.
#40318 I do a similar change for Scala 2.13
…Exception` catch to `repl.Main` for Scala 2.13 ### What changes were proposed in this pull request? This pr add the same `ClassNotFoundException` catch to `repl.Main` for Scala 2.13 as #40305 due `org/apache/spark/repl/Main.scala` is Scala version sensitive。 ### Why are the changes needed? Make sure Scala 2.12 and 2.13 have the same logic ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual check Closes #40318 from LuciferYang/SPARK-42656-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: Herman van Hovell <[email protected]>
…Exception` catch to `repl.Main` for Scala 2.13 ### What changes were proposed in this pull request? This pr add the same `ClassNotFoundException` catch to `repl.Main` for Scala 2.13 as #40305 due `org/apache/spark/repl/Main.scala` is Scala version sensitive。 ### Why are the changes needed? Make sure Scala 2.12 and 2.13 have the same logic ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual check Closes #40318 from LuciferYang/SPARK-42656-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: Herman van Hovell <[email protected]> (cherry picked from commit 67328de) Signed-off-by: Herman van Hovell <[email protected]>
dongjoon-hyun
left a 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.
Hi, @zhenlineo and @hvanhovell . We need to register new profile as build_profile_flags.
Here is the PR.
### What changes were proposed in this pull request? Add spark connect shell to start the spark shell with spark connect enabled. Added "-Pconnect" to build the spark connect in the distributions. Simplified the dev shell scripts with "-Pconnect" command. ### Why are the changes needed? Allow users to play with spark connect easily. ### Does this PR introduce _any_ user-facing change? Yes. Added a new shell script and "-Pconnect" build option. ### How was this patch tested? Manually tested. Closes apache#40305 from zhenlineo/connect-shell. Authored-by: Zhen Li <[email protected]> Signed-off-by: Herman van Hovell <[email protected]> (cherry picked from commit 2e7207f) Signed-off-by: Herman van Hovell <[email protected]>
…Exception` catch to `repl.Main` for Scala 2.13 ### What changes were proposed in this pull request? This pr add the same `ClassNotFoundException` catch to `repl.Main` for Scala 2.13 as apache#40305 due `org/apache/spark/repl/Main.scala` is Scala version sensitive。 ### Why are the changes needed? Make sure Scala 2.12 and 2.13 have the same logic ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual check Closes apache#40318 from LuciferYang/SPARK-42656-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: Herman van Hovell <[email protected]> (cherry picked from commit 67328de) Signed-off-by: Herman van Hovell <[email protected]>
What changes were proposed in this pull request?
Add spark connect shell to start the spark shell with spark connect enabled.
Added "-Pconnect" to build the spark connect in the distributions.
Simplified the dev shell scripts with "-Pconnect" command.
Why are the changes needed?
Allow users to play with spark connect easily.
Does this PR introduce any user-facing change?
Yes. Added a new shell script and "-Pconnect" build option.
How was this patch tested?
Manually tested.