[ https://issues.apache.org/jira/browse/HADOOP-14801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16138736#comment-16138736 ]
Sean Mackrory commented on HADOOP-14801: ---------------------------------------- This is probably it. The forceCreate option was only put in for the create command. I also don't see it as being correct for any other command to do. {code} diff --git a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/S3GuardTool.java b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/S3GuardTool.java index 9bd0cb8..958ddee 100644 --- a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/S3GuardTool.java +++ b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/S3GuardTool.java @@ -700,7 +700,7 @@ public int run(String[] args, PrintStream out) throws IOException { } String s3Path = paths.get(0); initS3AFileSystem(s3Path); - initMetadataStore(true); + initMetadataStore(false); URI uri; try { {code} > s3guard diff demand creates a new table > --------------------------------------- > > Key: HADOOP-14801 > URL: https://issues.apache.org/jira/browse/HADOOP-14801 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: HADOOP-13345 > Reporter: Steve Loughran > Priority: Minor > > ifr you call {{s3guard diff}} to diff a bucket and a table, it creates the > table if not already there. I don't see that as being the right thing to do. > {code} > hadoop s3guard diff $bucket > 2017-08-22 15:14:47,025 INFO s3guard.DynamoDBMetadataStore: Creating > non-existent DynamoDB table hwdev-steve-ireland-new in region eu-west-1 > 2017-08-22 15:14:52,384 INFO s3guard.S3GuardTool: Metadata store > DynamoDBMetadataStore{region=eu-west-1, tableName=hwdev-steve-ireland-new} is > initialized. > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org