sparkmagic
sparkmagic copied to clipboard
Way to export modules to spark cluster
I'm not sure if there is already a way to send modules from the local environment to the cluster.
Ideally I would like something like this:
%%send_module <name_of_my_module>
and then
from my_module import func_foo
This would be extremely usefull, if this is currently implemented or if there is any workaround please let me know.
Thanks!
لست متأكدا مما إذا كانت هناك بالفعل طريقة لإرسال الوحدات النمطية من البيئة المحلية إلى المجموعة.
من الناحية المثالية ، أود شيئا من هذا القبيل:
%%send_module <name_of_my_module>وبعد ذلك
from my_module import func_fooسيكون هذا مفيدا للغاية ، إذا تم تنفيذ ذلك حاليا أو إذا كان هناك أي حل بديل ، فيرجى إعلامي.
شكرا!
This would be nice to know!
لست متأكدا مما إذا كانت هناك بالفعل طريقة لإرسال الوحدات النمطية من البيئة المحلية إلى المجموعة.
من الناحية المثالية ، أود شيئا من هذا القبيل:
%%send_module <name_of_my_module>وبعد ذلك
from my_module import func_fooسيكون هذا مفيدا للغاية ، إذا تم تنفيذ ذلك حاليا أو إذا كان هناك أي حل بديل ، فيرجى إعلامي.
شكرا!
Hi @joaolaitano @jonvlcs07 thanks for making an issue. This is a design flaw (feature, not a bug) of Apache Livy. This is a common problem, but unfortunately there is no generic solution, it's very environment specific.
You could implement a function like %%send_module <name_of_my_module> and it would work if <name_of_my_module> doesn't rely on other local modules or files, but there are too many edge cases (local files, copying permission, etc) for us to expose build it as a generic API.
Hope this help!