-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-25841 Add basic jshell support #3224
Conversation
Doesn't do anything other than adding a |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Could you please provide some examples on how to make use of this jshell? It is just a standalone process? Not inside a master or regionserver process? |
Sure. I see this being as a more advanced feature, maybe a developer feature. I'm not really sure who the intended audience of the The patch as I've posted provides an interactive environment with HBase classes loaded. It is the equivalent of a Ruby IRB session, without all of the helpful DSL code we have that makes the This is a stand-alone process that is run by a user on-demand. It does not impact any of our existing daemon processes. Here's an example of how we might update our examples in the book from being code snippets to being jshell snippets,
|
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 think this is useful for quickly debugging class path issues and such (or even small programs) saving the time taken to compile test classes. Handy to have the entire class path loaded into the jvm.
Yes, it wouldn't be a useful experience otherwise, and so this would save everyone some typing at every start time. |
Agree that we should specify a startup script with base imports, make sure you include the default imports too though because |
7b6c8dd
to
89181c9
Compare
I think I've addresses everyone's concerns. Please give it a spin and let me know if there are other imports we should include by default (for example, I initially considered I'm still looking into whether we can override the welcome message or add a new entry to the |
Also, HBASE-25889. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Bharath Vissapragada <[email protected]> Signed-off-by: Pankaj Kumar <[email protected]> Signed-off-by: Duo Zhang <[email protected]>
89181c9
to
3a75622
Compare
💔 -1 overall
This message was automatically generated. |
2 similar comments
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
No description provided.