Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added ProcessContext encrypt and decrypt

...

Migrating from deprecated components and features requires different steps depending on configured properties. The level of difficulty varies based on the number of properties to be changed and the steps involved to maintain similar behavior.

Features

Migrating deprecated features requires changes to application properties or custom component implementations. The steps involved will be different based on implementation details and deployment use cases.

ProcessContext encrypt and decrypt methods

Component

org.apache.nifi.processor.ProcessContext

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-api
Deprecation TypeInterface Method
Deprecated Version1.20.0
Migration DifficultyHIGH
Migration TypeImplementation redesign

Migration

The ProcessContext interface provides property and component configuration information to Processors through the onTrigger method. The encrypt and decrypt methods supported enciphering and deciphering component-provided strings using the Sensitive Properties Key and Sensitive Properties Algorithm configured in nifi.properties.

These methods did not provide any persistent storage mechanism and also did not provide any guarantees of compatible behavior when changing application properties. Most components depend on framework capabilities to store and retrieve sensitive property values, obviating the need for these methods.

Custom components should use Property Descriptors with the sensitive field enabled to store and retrieve sensitive property values. Alternative uses of the encrypt and decrypt methods require custom implementation.

Processors

Migrating deprecated Processors and properties requires flow design changes. The steps required range from setting different property values to replacing one Processor with one or more Processors providing similar capabilities.

...

Component Class

org.apache.nifi.processors.standard.EncodeContent

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar

Migration

Base64EncodeContent supports a single Mode property that can be set to Encode or Decode.

...

Component Class

org.apache.nifi.processors.standard.InvokeHTTP

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar

Migration

GetHTTP supports a number of configurable properties to retrieve data using the HTTP GET method. The URL property controls the primary behavior of the Processor.

...

Component Class

org.apache.nifi.jms.processors.ConsumeJMS

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-jms-processors-nar

Migration

GetJMSQueue supports retrieving messages using the Java Message Service Queue interface to access Apache ActiveMQ.

...

Component Class

org.apache.nifi.jms.processors.ConsumeJMS

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-jms-processors-nar

Migration

GetJMSTopic supports retrieving messages using the Java Message Service Topic interface to access Apache ActiveMQ.

...

GetTwitter

Component Class

org.apache.nifi.processors.twitter.GetTwitter

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-social-media-nar
Deprecation TypeComponent Class
Deprecated Version1.17.0
Migration DifficultyMEDIUM
Migration TypeComponent Replacement

Alternatives

Component Class

org.apache.nifi.processors.twitter.ConsumeTwitter

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-social-media-nar

Migration

GetTwitter uses Version 1 of the Twitter REST API and relies on the retired Twitter Hosebird Client library.

...

Component Class

org.apache.nifi.processors.standard.UpdateAttribute

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar

Migration

HashAttribute supports generating an MD5 digest of one more FlowFile attribute name and value pairs. The MD5 algorithm is not secure for cryptographic operations, and alternatives such as the SHA-2 or SHA-3 algorithms should be used.

...

Component Class

org.apache.nifi.processors.standard.CryptographicHashContent

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar

Migration

HashContent supports generating a digest of FlowFile content using a configurable algorithm and writing the hash to a specified FlowFile attribute.

...

Component Class

org.apache.nifi.processors.standard.InvokeHTTP

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar
Deprecation TypeComponent Properties
Deprecated Version1.18.0
Migration DifficultyLOW
Migration TypeProperty Replacement

Migration

InvokeHTTP includes several deprecated properties for configuring access through a proxy server.

...

Component Class

org.apache.nifi.processors.standard.InvokeHTTP

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar

Migration

PostHTTP supports sending FlowFile content to a configurable HTTP URL using the HTTP POST method.

...

Component Class

org.apache.nifi.jms.processors.PublishJMS

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-jms-processors-nar

Migration

PutJMS supports sending messages using the Java Message Service interface to access Apache ActiveMQ.

...