@sorenmacbeth: You mentioned setting up an nrepl server on the cluster and connecting to it remotely. Is there a way to do this on a standard edge node without having to install anything on the system? If so, what files do I need to copy over to the edge node?
@stephenmhopper: what do you mean edge node? I add the code to start an nrepl server on a port into my flambo application uberjar, and then call that function via spark-submit
on the cluster
I then connect to that host and port with the nrepl client in emacs
@sorenmacbeth: oh. So I’m still building and deploying my app as an uberjar, I’m just binding the nrepl server to a port
Do you have a code snippet or blog post that I could use as a reference for this?
Also, would it be possible to just do this via SSH tunneling? The sys ops guys get nervous and start asking questions if I just open ports on their machines
sure you can ssh tunnel to it
https://gist.github.com/sorenmacbeth/fd9b29cf354a8c8eaa4945f0a99b666a
okay
sweet
it’s working
@sorenmacbeth: This is a n00b question, but I’m using cursive instead of cider and emacs. Can I still use the cider library to get my output to print out both on my local machine and in my terminal session?
@sorenmacbeth: I think I have this mostly figured out, but I have a couple lingering questions:
1. When you connect via nrepl, are you starting your uberjar using spark-submit, or java -jar?
nvmd, everything is working
@sorenmacbeth this is pretty cool. Thank you so much for your work on this project.
@stephenmhopper: great! glad you got it working
that moment when your long ass stream of interop calls works the first time
i should probably go buy a lottery ticket right now
and just quit while i’m ahead
and open a sandwich shop or something