Accessing Cloud Data
Also available as:
loading table of contents...

Creating a Credential File

You can create a credential file on any Hadoop filesystem. When you create one on HDFS or a UNIX filesystem, the permissions are automatically set to keep the file private to the reader — though as directory permissions are not touched, you should verify that the directory containing the file is readable only by the current user. For example:

hadoop credential create fs.s3a.access.key -value 123 \
    -provider jceks://

hadoop credential create fs.s3a.secret.key -value 456 \
    -provider jceks://

After creating the credential file, you can list it to see what entries are kept inside it. For example:

hadoop credential list -provider jceks://

Listing aliases for CredentialProvider: jceks://

After performing these steps. credentials are ready for use.