Configuring the KMS Using Cloudera Manager
For instructions about configuring the KMS and its clients using the command line for package-based installations, continue reading:
Configuring the KMS Cache Using Cloudera Manager
By default, the KMS caches keys to reduce the number of interactions
with the key provider. You can disable the cache by setting the
hadoop.kms.cache.enable
property to
false
.
The cache is only used with the getCurrentKey()
,
getKeyVersion()
and getMetadata()
methods.
For the getCurrentKey()
method, entries are cached
for a maximum of 30000
milliseconds to prevent stale
keys.
For the getKeyVersion()
method, entries are cached
with a default inactivity timeout of 600000
milliseconds (10 minutes).
<property> <name>hadoop.kms.cache.enable</name> <value>true</value> </property> <property> <name>hadoop.kms.cache.timeout.ms</name> <value>600000</value> </property> <property> <name>hadoop.kms.current.key.cache.timeout.ms</name> <value>30000</value> </property>
Configuring the Audit Log Aggregation Interval
Audit logs are generated for GET_KEY_VERSION,
GET_CURRENT_KEY, DECRYPT_EEK
, and
GENERATE_EEK
operations.
Entries are aggregated by user, key, and operation for a configurable interval, after which the number of aggregated operations by the user for a given key is written to the audit log.
hadoop.kms.aggregation.delay.ms
property to
:<property> <name>hadoop.kms.aggregation.delay.ms</name> <value>10000</value> </property>