amazon-web-services - AWS EMR如何使用shell脚本作为引导操作?

标签 amazon-web-services emr amazon-emr

我需要能够在 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 脚本作为引导操作。

enter image description here

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

最佳答案

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

示例:

s3://mybucket/myfolder/myscript.sh

关于amazon-web-services - AWS EMR如何使用shell脚本作为引导操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35121593/

相关文章:

python - 在 aws emr 上 spark-submit python 应用程序的正确方法是什么?

ant - Amazon EMR 教程示例不使用 ant 进行编译

hadoop - Apache Spark 通过跨集群访问 hdfs 中的数据

hadoop - 文件在 Amazon EMR 中不存在,即使它尝试上传它

python - AWS EMR Spark "No Module named pyspark"

amazon-web-services - 如何运行适用于 MacOS 的 EC2 Classic Resource Finder 脚本并为该脚本创建适当的 IAM 用户?

mysql - 使用 Amazon Web Services(EC2 等)托管 CakePHP 应用程序?

java - 在主函数中读取文件 - Hadoop

amazon-web-services - 如何使docker stack可以使用ebs卷

amazon-web-services - 是否有 AWS/Azure/Gcloud API 的包装器?