Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 06-21-2017 03:27 PM
Created 06-21-2017 06:29 PM
You can simply run hdfs cli commands to delete objects on S3
hdfs dfs -rm -r -f -skipTrash s3a://S3_BUCKET_NAME/S3_PATH
This however will only works if you have specified S3 properties (fs.s3a.access.key, fs.s3a.secret.key) in core-site.xml
Created 06-21-2017 06:29 PM
You can simply run hdfs cli commands to delete objects on S3
hdfs dfs -rm -r -f -skipTrash s3a://S3_BUCKET_NAME/S3_PATH
This however will only works if you have specified S3 properties (fs.s3a.access.key, fs.s3a.secret.key) in core-site.xml
Created 06-21-2017 07:39 PM
so we're needing to perform the command inside an oozie workflow so am assuming the command above would work when the oozie workflow xml like what's shown below. Am I understanding that correctly?
<action name="remove-s3">
<fs>
<hdfs dfs -rm -r -f -skipTrash s3a://S3_BUCKET_NAME/S3_PATH />
</fs>
</action>
Created 06-21-2017 08:32 PM
Yes, that is correct