You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ga...@apache.org on 2019/11/18 12:56:56 UTC

[hadoop] branch trunk updated: HADOOP-16484. S3A to warn or fail if S3Guard is disabled - addendum: silent for S3GuardTool (#1714). Contributed by Gabor Bota.

This is an automated email from the ASF dual-hosted git repository.

gabota pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new cad5408  HADOOP-16484. S3A to warn or fail if S3Guard is disabled - addendum: silent for S3GuardTool (#1714). Contributed by Gabor Bota.
cad5408 is described below

commit cad540819fb28a3c269906ee29fdc05d346f360c
Author: Gabor Bota <ga...@cloudera.com>
AuthorDate: Mon Nov 18 13:56:37 2019 +0100

    HADOOP-16484. S3A to warn or fail if S3Guard is disabled - addendum: silent for S3GuardTool (#1714). Contributed by Gabor Bota.
    
    Change-Id: I63b928ef5da425ef982dd4100a426fc23f64bac1
---
 .../src/main/java/org/apache/hadoop/fs/s3a/s3guard/S3GuardTool.java  | 5 +++++
 1 file changed, 5 insertions(+)

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 109b33c..9c8071f 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
@@ -138,6 +138,11 @@ public abstract class S3GuardTool extends Configured implements Tool {
   protected S3GuardTool(Configuration conf, String...opts) {
     super(conf);
 
+    // Set s3guard is off warn level to silent, as the fs is often instantiated
+    // without s3guard on purpose.
+    conf.set(S3GUARD_DISABLED_WARN_LEVEL,
+        S3Guard.DisabledWarnLevel.SILENT.toString());
+
     commandFormat = new CommandFormat(0, Integer.MAX_VALUE, opts);
     // For metadata store URI
     commandFormat.addOptionWithValue(META_FLAG);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org