sparkmonitor icon indicating copy to clipboard operation
sparkmonitor copied to clipboard

Scala support?

Open tonycpsu opened this issue 7 years ago • 5 comments

This looks neat, but the test notebook only shows example usage with pyspark. Does this work at all with Scala notebooks?

tonycpsu avatar Aug 16 '17 20:08 tonycpsu

No, not currently. But it can be made to work with some changes.

The data collection happens in Scala, using a SparkListener interface. This data is forwarded to the ipython kernel extension using tcp sockets.....which is again forwarded to the browser frontend using ipython/jupyter comm api provided by the ipython kernel.

So to make it work with Scala notebooks, a scala kernel extension needs to be created that does the same thing as the ipython kernel extension

(This project is part of GSOC 2017, and I am in the process of making final changes for submission next week. So I will be adding more detailed documentation of the code and how the extension works and some more uses cases in the next couple of days.)

The original use case was for monitoring the parallelization of certain libraries in python with spark. So currently only pyspark can be used. At the moment I don't have time, but I think support for scala kernels would make this extension complete!

krishnan-r avatar Aug 18 '17 12:08 krishnan-r

OK, thanks much for the detailed explanation. I don't have the cycles to take on the Scala kernel extension bit myself right now, but will follow this project with interest, and perhaps take a stab at it in the future.

tonycpsu avatar Aug 28 '17 15:08 tonycpsu

Any updates on the support for Scala?

cristina-grosu avatar Sep 21 '18 11:09 cristina-grosu

Scala support would be a great feature to have.

I am in discussion with folks at the nteract community, on improving this project, support for nteract and better integration with Jupyter protocols and other things. Once things take shape, will work on Scala support.

At the moment on some time constraints, will start working on it perhaps by mid October.

krishnan-r avatar Sep 23 '18 05:09 krishnan-r

@krishnan-r Good day, really cool extension. Are there any updates on extending it to Scala kernel? And what kernel you're talking about saying "Scala"?

Currently I work with Apache Toree kernel and actively looking for how to add to it the capability to see SparkUI features just inside the Notebook cell. Looks like this project may help me to solve the problem.

jahstreet avatar Jun 28 '19 15:06 jahstreet