AWS EMR如何使用Shell脚本作为引导操作? [英] AWS EMR how to use shell script as bootstrap action?

查看:290
本文介绍了AWS EMR如何使用Shell脚本作为引导操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够在我发现这篇文章的EMR中使用Java 8

I need to be able to use Java 8 in EMR I have found this post

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

哪个提供了引导程序shell脚本

Which provides a bootstrap shell script

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

哪个安装了Java8.

Which installs java 8.

在查看有关如何使用引导脚本的文档时,如何在引导操作中使用shell脚本一点都不明显,因为在文档中,它要求一个Jar位置(

When looking at documentation on how to use bootstrap scripts its not apparent at all how to use a shell script with bootstrap actions since in documentation it asks for a Jar location (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脚本作为引导操作.

I don't have a Jar location I have a shell script as a bootstrap action.

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

How am I suppose to use a shell script should I just enter the shell script as Jar location?

推荐答案

是的,您要做的就是将脚本的S3位置添加为JAR location(或使用表单导航至该位置).

Yes, all you have to do is add the S3 location of your script as the JAR location (or just navigate to it using the form).

示例:

s3://mybucket/myfolder/myscript.sh

这篇关于AWS EMR如何使用Shell脚本作为引导操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆