If your subclass also has an @OnScheduled annotated method and you need hdfsResources in that method, then be sure to call super.abstractOnScheduled(context)
All processors and controller services that need properties for Kerberos
Principal and Keytab should obtain them through this class by calling:
KerberosProperties props =
KerberosProperties.create(NiFiProperties.getInstance())
The properties can be accessed from the resulting KerberosProperties
instance.
Instantiate a KerberosProperties object but keep in mind it is
effectively a singleton because the krb5.conf file needs to be set as a
system property which this constructor will take care of.
This method will be called after the Configuration has been created, but before the FileSystem is created,
allowing sub-classes to take further action on the Configuration before creating the FileSystem.