AWS EMR 如何使用 shell 脚本作为 bootstrap 操作?

AWS EMR how to use shell script as bootstrap action?

我需要能够在 EMR 中使用 Java 8 我找到了这个 post

https://crazydoc1.wordpress.com/2015/08/23/java-8-on-amazon-emr-ami-4-0-0/

其中提供了bootstrapshell脚本

https://gist.github.com/pstorch/c217d8324c4133a003c4

哪个安装java8.

在查看有关如何使用 bootstrap 脚本的文档时,根本不清楚如何将 shell 脚本与 bootstrap 操作一起使用,因为在文档中它要求提供 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 脚本作为 bootstrap 操作。

我应该如何使用 shell 脚本,我应该只输入 shell 脚本作为 Jar 位置吗?

是的,您所要做的就是将脚本的 S3 位置添加为 JAR location(或者使用表单导航到它)。

示例:

s3://mybucket/myfolder/myscript.sh