Giter Club home page Giter Club logo

Comments (7)

quasiben avatar quasiben commented on June 29, 2024 1

Definitely agree. I had similar thoughts -- adding more CLI options is annoying to say the least. I've experimented with this a bit in the past: https://github.com/ContinuumIO/nutchpy/tree/master/nutchpy but was a little less diligent with tests then

We'll also want higher bandwidth communication between Client and AM especially for things like dynamic container management (ongoing discussion here: dask/distributed#128)

My initial thoughts were also Py4J but do you think it's worth considering other options ? Jepp/JPype or Thrift/Protobuf ?

More extensive thoughts on scala/python interaction:
https://github.com/A-OK/Snakes-and-Ladders/

from knit.

NielsZeilemaker avatar NielsZeilemaker commented on June 29, 2024

I was thinking to use PY4j solely because spark is also using it. I guess it should be fast enough for dynamic allocation, but sending large binary objects is probably not a good idea.

Spark has a similar comment:
https://cwiki.apache.org/confluence/display/SPARK/PySpark+Internals
"large data transfers are performed through a different mechanism."

As for the other options, I guess Thrift stands out, as that "protocol" is used to communicate between the other yarn stuffs (AM -> RM etc.). But then again, I guess simply starting another PY4j gateway in the AM, and registering its rpc port using

rmClient.registerApplicationMaster("", PY4J gateway port, "")

would allow us to connect from python directly to the AM.

We do need to bind to 0.0.0.0 on the AM, and have some way of "securing it", as described here
https://www.py4j.org/faq.html#are-there-any-security-concerns-with-py4j.

from knit.

NielsZeilemaker avatar NielsZeilemaker commented on June 29, 2024

@quasiben i've implemented a poc at #51

from knit.

koverholt avatar koverholt commented on June 29, 2024

@NielsZeilemaker, this is great! Thanks for your contribution/PR here. I just wanted to let you know that @quasiben is out of the office this week, but we can review this when he gets back.

from knit.

NielsZeilemaker avatar NielsZeilemaker commented on June 29, 2024

Sure no problem, I've had a lot of fun trying this stuff out. For now, I'll leave it as it is and wait for @quasiben to return.

from knit.

martindurant avatar martindurant commented on June 29, 2024

This looks fixed t me - OK to close?

from knit.

quasiben avatar quasiben commented on June 29, 2024

Oh, yes! Thanks for cleaning up.

from knit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.