Class KerberosConsumerFactoryFn
java.lang.Object
org.apache.beam.sdk.extensions.kafka.factories.FileAwareFactoryFn<Consumer<byte[],byte[]>>
org.apache.beam.sdk.extensions.kafka.factories.KerberosConsumerFactoryFn
- All Implemented Interfaces:
Serializable,ProcessFunction<Map<String,,Object>, Consumer<byte[], byte[]>> SerializableFunction<Map<String,Object>, Consumer<byte[], byte[]>>
- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.extensions.kafka.factories.FileAwareFactoryFn
DIRECTORY_PREFIX, SECRET_VALUE_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Consumer<byte[], byte[]> createObject(Map<String, Object> config) protected voidprotected StringprocessSecret(String originalValue, String secretId, byte[] secretValue) Methods inherited from class org.apache.beam.sdk.extensions.kafka.factories.FileAwareFactoryFn
apply, downloadExternalFile, getBaseDirectory, getSecret, getSecretWithCache
-
Constructor Details
-
KerberosConsumerFactoryFn
-
-
Method Details
-
createObject
- Specified by:
createObjectin classFileAwareFactoryFn<Consumer<byte[],byte[]>>
-
downloadAndProcessExtraFiles
- Overrides:
downloadAndProcessExtraFilesin classFileAwareFactoryFn<Consumer<byte[],byte[]>> - Throws:
IOException- A hook for subclasses to download and process specific files before the main configuration is handled. For example, the kerberos factory can use this to download a krb5.conf and set a system property.
-
processSecret
protected String processSecret(String originalValue, String secretId, byte[] secretValue) throws RuntimeException - Overrides:
processSecretin classFileAwareFactoryFn<Consumer<byte[],byte[]>> - Throws:
RuntimeException
-