AWS EMR how to use shell script as bootstrap action?

跟風遠走 提交于 2020-01-04 06:27:14

问题


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/

Which provides a bootstrap shell script

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

Which installs java 8.

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.

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

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


回答1:


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).

Example:

s3://mybucket/myfolder/myscript.sh


来源:https://stackoverflow.com/questions/35121593/aws-emr-how-to-use-shell-script-as-bootstrap-action

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!