flambo

stephenmhopper 2016-05-25T12:49:45.000174Z

@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?

sorenmacbeth 2016-05-25T14:12:29.000175Z

@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

sorenmacbeth 2016-05-25T14:12:45.000176Z

I then connect to that host and port with the nrepl client in emacs

stephenmhopper 2016-05-25T14:32:32.000178Z

@sorenmacbeth: oh. So I’m still building and deploying my app as an uberjar, I’m just binding the nrepl server to a port

stephenmhopper 2016-05-25T14:32:50.000179Z

Do you have a code snippet or blog post that I could use as a reference for this?

stephenmhopper 2016-05-25T14:33:22.000180Z

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

sorenmacbeth 2016-05-25T14:54:20.000181Z

sure you can ssh tunnel to it

stephenmhopper 2016-05-25T15:27:10.000183Z

okay

stephenmhopper 2016-05-25T15:27:12.000184Z

sweet

stephenmhopper 2016-05-25T15:27:14.000185Z

it’s working

stephenmhopper 2016-05-25T15:29:34.000186Z

@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?

stephenmhopper 2016-05-25T16:31:09.000187Z

@sorenmacbeth: I think I have this mostly figured out, but I have a couple lingering questions:

stephenmhopper 2016-05-25T16:31:37.000188Z

1. When you connect via nrepl, are you starting your uberjar using spark-submit, or java -jar?

stephenmhopper 2016-05-25T17:45:09.000189Z

nvmd, everything is working

stephenmhopper 2016-05-25T17:45:22.000190Z

@sorenmacbeth this is pretty cool. Thank you so much for your work on this project.

sorenmacbeth 2016-05-25T19:22:47.000191Z

@stephenmhopper: great! glad you got it working

jrotenberg 2016-05-25T19:51:50.000192Z

that moment when your long ass stream of interop calls works the first time

🤘 1
jrotenberg 2016-05-25T19:52:12.000193Z

i should probably go buy a lottery ticket right now

jrotenberg 2016-05-25T19:53:10.000194Z

and just quit while i’m ahead

jrotenberg 2016-05-25T19:53:17.000195Z

and open a sandwich shop or something