我正在使用Amazon EMR 3.10,我希望将文件从本地复制到Amazon S3 ...我正在使用" script-runner.jar"在参数中,我在参数中提到了一个命令 sudo aws s3 cp /home/hadoop/conf/hdfs-site.xml s3:// testbucket / myfolder / - recursive ...但是这个步骤正在失败&抛出以下异常:
Exception in thread "main" java.lang.RuntimeException: Local file does not exist.
at com.amazon.elasticmapreduce.scriptrunner.ScriptRunner.fetchFile(ScriptRunner.java:30)
at com.amazon.elasticmapreduce.scriptrunner.ScriptRunner.main(ScriptRunner.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
我在步骤中需要做什么才能将文件从本地复制到Amazon S3?我还想提出几个问题吗? 1)如果我需要使用" command-runner.jar",如何在EMR 3.10中使用命令运行器? 2)如何使用Bootstrap操作执行复制任务?
谢谢