Conversation
did you mean to title this METRON-435? |
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.
This is great! I love it! Just a couple things and I'm +1 for sure.
}); | ||
|
||
context = new Context.Builder() | ||
.with(Context.Capabilities.GLOBAL_CONFIG, () -> global) |
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.
Can we add the Context.Capabilities.ZOOKEEPER_CLIENT
as well? Looks like we have it right there on line 81.
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.
Added zookeeper client to the Context.
*/ | ||
public class StellarShell { | ||
|
||
private static final String WELCOME = "Stellar, Go!"; |
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 LOL'd
Oops, yes. Let me fix. |
2b8b4da
to
8bd90a1
Compare
Also, added a doc string type functionality. I couldn't help myself.
|
What, no autocomplete? ;) |
+1, we can iterate from here. I think this is going to be super useful. |
Ha, trust me, I wanted to do it. |
Bonus points if you had used https://github.com/qmx/jreadline and given us emacs and vi mode as well as a hook for autocomplete :) EDIT: this appears to now be https://github.com/aeshell/aesh |
Created this for debugging some issues I was having in running Stellar functions are on a live cluster. Thought this would be generally useful on its own.
METRON-435
Create a REPL (Read Eval Print Loop) for the Stellar language that helps in debugging, troubleshooting and learning Stellar. The Stellar DSL (domain specific language) is used to act upon streaming data within Apache Storm. It is difficult to troubleshoot Stellar when it can only be executed within a Storm topology. This REPL is intended to help mitigate that problem by allowing a user to replicate data encountered in production, isolate initialization errors, or understand function resolution problems.