We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9dc421 + 2d0975f commit c528c4fCopy full SHA for c528c4f
utilities/run-if
@@ -71,8 +71,8 @@ def download_and_execute_command(command, args)
71
file_name = command
72
execute_name = command
73
74
- # If the command starts with s3:// or s3n://
75
- if command.match(/s3[n]{0,1}:\/\/.*/) then
+ # If the command starts with s3://, s3n:// or s3a://
+ if command.match(/^s3[n|a]{0,1}:\/\/.*/) then
76
puts "Attempting to download file '#{command}'"
77
system("/home/hadoop/bin/hadoop fs -copyToLocal #{command} ./")
78
0 commit comments