我需要能够在 EMR 中使用 Java 8 我找到了这篇文章
https://crazydoc1.wordpress.com/2015/08/23/java-8-on-amazon-emr-ami-4-0-0/
其中提供了引导 shell 脚本
https://gist.github.com/pstorch/c217d8324c4133a003c4
它安装 java 8。
在查看有关如何使用引导脚本的文档时,根本不知道如何使用带有引导操作的 shell 脚本,因为在文档中它要求提供 Jar 位置 ( https://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-plan-bootstrap.html )
Under Bootstrap Actions select Configure and add to specify the Name, JAR location, and arguments for your bootstrap action. Choose Add.
我没有 Jar 位置,我有一个 shell 脚本作为引导操作。
如果我只输入 shell 脚本作为 Jar 位置,我该如何使用 shell 脚本?
最佳答案
是的,您所要做的就是将脚本的 S3
位置添加为 JAR 位置
(或者仅使用表单导航到它)。
示例:
s3://mybucket/myfolder/myscript.sh
关于amazon-web-services - AWS EMR如何使用shell脚本作为引导操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35121593/