Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added HashAttribute

...

GetHTTP

Component Class

org.apache.nifi.processors.standard.GetHTTP

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar
Deprecated Version1.9.0
Migration DifficultyLOW
Migration TypeComponent Replacement

Alternatives

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.

...

Setting standard InvokeHTTP properties provides functionality similar to GetHTTP,

PropertyValue
HTTP MethodGET
HTTP URLHTTP or HTTPS location
Response FlowFile Naming StrategyURL_PATH

Flow Definitions

The Deprecated Flow Definition includes GetHTTP configured to retrieve the SHA-256 checksum for the NiFi 1.20.0 distribution. The Flow Definition also includes a required SSL Context Service configured with the Java Runtime cacerts Trust Store.

...

GetJMSQueue

Component Class

org.apache.nifi.processors.standard.GetJMSQueue

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar
Deprecated Version1.3.0
Migration DifficultyMEDIUM
Migration TypeComponent Replacement

Alternatives

Component Class

org.apache.nifi.processors.standard.ConsumeJMS

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

Migration

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

...

ConsumeJMS should be configured with a Connection Factory Service implementation of JMSConnectionFactoryProvider with required properties. The ActiveMQ Artemis library provides the current supported version of JMS access.

PropertyValue
JMS Connection Factory Implementation Classorg.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory
JMS Client Libraries/opt/activemq-artemis-2.28.0/lib
JMS Broker URItcp://${AMQ_HOST}:61616

ConsumeJMS uses the Connection Factory Service along with several other properties to access JMS Queues.

PropertyValue
Connection Factory ServiceJMSConnectionFactoryProvider
Destination Name
Destination TypeQUEUE

Flow Definitions

The Deprecated Flow Definition includes GetJMSQueue configured for ActiveMQ running on the localhost address with a specified Destination Name.

...

HashAttribute

Component Class

org.apache.nifi.processors.standard.HashAttribute

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar
Deprecated Version1.21.0
Migration DifficultyLOW
Migration TypeComponent Replacement

Alternatives

Component Class

org.apache.nifi.processors.standard.CryptographHashAttribute

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.

The CryptographicHashAttribute Processor supports generating a digest of FlowFile attributes using a configurable algorithm.

Each Processor uses different approaches for specifying which FlowFile attributes to hash.

HashAttribute uses the Hash Value Attribute Key property to specify the destination FlowFile attribute name for the computed digest. HashAttribute uses one or more dynamic properties to provide source FlowFile attribute name, and a regular expression value to determine whether the FlowFile attribute should be included in the digest calculation. HashAttribute converts all attribute values to bytes using UTF-8 encoding.

Generating a hash attribute from a single FlowFile attribute name and value pair requires the both standard and dynamic properties.

PropertyValue
Hash Value Attribute Keylabel-hash
label.*

CryptographicHashAttribute uses dynamic properties to specify the source and destination FlowFile attribute names. The Hash Algorithm property should be configured with SHA-256 or other SHA-2 algorithm.

Generating a hash attribute from a single FlowFile attribute value requires both standard and dynamic properties.

PropertyValue
Hash AlgorithmSHA-256
labellabel-hash

Flow Definitions

The Deprecated Flow Definition includes HashAttribute configured to write a FlowFile attribute named label-hash using the label attribute name and the value of the attribute from the incoming FlowFile.

The Migrated Flow Definition includes CryptographicHashAttribute configured to write a FlowFile attribute named label-hash using the value of the label attribute from the incoming FlowFile.