Disabling S3Guard and Destroying a S3Guard Database
If you decide to disable S3Guard:
From the Ambari web UI, delete the per-bucket
fs.s3a.metadatastore.impl
parameter or set it back to the default "org.apache.hadoop.fs.s3a.s3guard.NullMetadataStore".If you are not using a shared table, in DynamoDB console on AWS, delete the DynamoDB table to avoid incurring unnecessary costs.
The command hadoop s3guard destroy
can be used on the command line to destroy a table.
hadoop s3guard destroy s3a://guarded-table/ 2018-05-31 15:35:39,075 [main] INFO s3guard.S3GuardTool (S3GuardTool.java:initMetadataStore(270)) - Metadata store DynamoDBMetadataStore{region=eu-west-1, tableName=guarded-table} is initialized. 2018-05-31 15:35:39,077 [main] INFO s3guard.DynamoDBMetadataStore (DynamoDBMetadataStore.java:destroy(793)) - Deleting DynamoDB table guarded-table in region eu-west-1 Metadata store is deleted.
Destroying a table does not destroy the data in S3; it merely removes the summary data used by S3Guard to provide consistent listings.