Comments (7)
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.
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.
@quasiben i've implemented a poc at #51
from knit.
@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.
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.
This looks fixed t me - OK to close?
from knit.
Oh, yes! Thanks for cleaning up.
from knit.
Related Issues (20)
- hdfs_home no longer respected
- With an hdfs instance, addresses already on hdfs cause python exception before start
- More robust testing HOT 1
- No upload option for env HOT 1
- Knit applications fail if files are uploaded in new release. HOT 4
- ApplicationMaster out of memory? HOT 8
- CondaCreator on a different platform HOT 4
- Redundant hdfs:// prefix for files uploaded by ``Knit.start`` HOT 8
- Container naming assumptions in ``yarn_api`` seem incorrect HOT 3
- Pre-installed Python Option HOT 2
- Support for constructing and env from an environment.yml HOT 4
- No stdout HOT 4
- Locale error on application start HOT 3
- Need an example of submitting a dask/python script to YARN HOT 15
- No information on running tasks in Bokeh in EMR HOT 6
- Knit unable to renew HDFS delegation token HOT 2
- Master Application getting closed upon all workers removed HOT 9
- More control required over construction of zip files HOT 3
- Permission Denied when writing to HDFS HOT 12
- Deprecate? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knit.