EMR 引导脚本文件位置



嗨,我有一个 bash 脚本,可以将文件上传到 dnsmasq 并启动 dnsmasq 服务。但是,在引导时,它失败并出现以下错误。 请让我知道在 EMR 中哪个文件夹是可读的,以便我可以将我的脚本保存在该文件夹中并在那里运行它。

我试图将其放在/ec2-user/中,也放在/root/中,这两种情况我都得到相同的错误

错误:

warning: Skipping file /root/. File/Directory is not readable.
cp: cannot stat ‘/root/bootstrap-actions/10-consul’: No such file or directory
cp: cannot stat ‘/root/bootstrap-actions/’: No such file or directory
cp: cannot stat ‘30-hq’: No such file or directory
cp: cannot stat ‘/root/bootstrap-actions/20-aws’: No such file or directory
cp: cannot stat ‘/root/bootstrap-actions/40-mesos-dns-us-east-1’: No such file or directory
cp: cannot stat ‘/root/bootstrap-actions/dnsmasq.conf’: No such file or directory
~

将引导脚本放在与 EMR 相同区域的 s3 存储桶中,并在引导操作中从 S3 加载脚本。这将起作用。

最新更新