简体   繁体   English

如何将Hudi Package添加到本地AWS Glue Interactive Notebook

[英]How to add Hudi Package to local AWS Glue Interactive Notebook

I have setup Glue Interactive sessions locally by following https://docs.aws.amazon.com/glue/latest/dg/interactive-sessions.html However, I am not able to add any additional packages like HUDI to the interactive session我已经按照https://docs.aws.amazon.com/glue/latest/dg/interactive-sessions.html在本地设置了 Glue Interactive 会话但是,我无法向交互式 session 添加任何其他包,例如 HUDI

There are a few magic commands to use but not sure which one is apt and how to use有一些神奇的命令可以使用,但不确定哪个是合适的以及如何使用

%additional_python_modules
%extra_jars
%extra_py_files

I am not able to comment on the question, so adding link to a similar question that has received an answer.我无法对该问题发表评论,因此请添加指向已收到答案的类似问题的链接

Regarding the magic commands, you will find the descriptions once you start the glue interactive notebook.关于魔术命令,您将在启动胶水交互式笔记本后找到说明。 I am also adding them here.我也在这里添加它们。

  • %additional_python_modules List Comma separated list of pip packages, s3 paths or private pip arguments. %additional_python_modules 列表 pip 包、s3 路径或私有 pip arguments 的逗号分隔列表。
    • %additional_python_modules ['path_to_pip_package_1', 'path_to_pip_package_2'] %additional_python_modules ['path_to_pip_package_1', 'path_to_pip_package_2']
  • %extra_jars List Comma separated list of additional Jars to include in the cluster. %extra_jars List 要包含在集群中的其他 Jars 的逗号分隔列表。
  • %extra_py_files List Comma separated list of additional Python files from S3. %extra_py_files List 来自 S3 的其他 Python 文件的逗号分隔列表。

In my case, I have a few Python helper functions in *.py and *.zip files (also contains some *.py files but just zipped).就我而言,我在 *.py 和 *.zip 文件中有一些 Python 辅助函数(也包含一些 *.py 文件,但只是压缩)。 This works:这有效:

%extra_py_files 's3://bucket/a.py,s3://bucket/b.py,s3://bucket/c.zip'

%additional_python_modules doesn't work for me so I assumed this magic is for whl files only ¯\_(ツ)_/¯ %additional_python_modules对我不起作用所以我认为这个魔法只适用于whl文件¯\_(ツ)_/¯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM