HADOOP-16832. S3Guard testing doc: Add required parameters for S3Guard testing in IDE. (#1822). Contributed by Mukund Thakur.

This commit is contained in:
Mukund Thakur 2020-02-06 19:43:25 +05:30 committed by GitHub
parent 71b2c2ffe9
commit 146ca0f545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -813,6 +813,31 @@ sequential one afterwards. The IO heavy ones must also be subclasses of
This is invaluable for debugging test failures.
How to set test options in your hadoop configuration rather
than on the maven command line:
As an example let's assume you want to run S3Guard integration tests using IDE.
Please add the following properties in
`hadoop-tools/hadoop-aws/src/test/resources/auth-keys.xml` file.
Local configuration is stored in auth-keys.xml. The changes to this file won't be committed,
so it's safe to store local config here.
```xml
<property>
<name>fs.s3a.s3guard.test.enabled</name>
<value>true</value>
</property>
```
```xml
<property>
<name>fs.s3a.s3guard.test.implementation</name>
<value>dynamo</value>
</property>
```
Warning : Although this is easier for IDE debugging setups, once you do this,
you cannot change configurations on the mvn command line, such as testing without s3guard.
### Keeping AWS Costs down
Most of the base S3 tests are designed to use public AWS data