Versions Compared

Key

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

...

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.

GetTwitter supports several different endpoints for streaming Tweets, including Sample realtime Tweets and Filter realtime Tweets.

GetTwitter also supports configurable properties for filtering Tweets, but this filtering approach is not support in Version 2 of the Twitter REST API, and is not supported in ConsumeTwitter.

ConsumeTwitter uses Version 2 of the Twitter REST API. Twitter documentation provides a general guide for migrating from Version 1 to Version 2 for filtered streams and sampled streams.

ConsumeTwitter with Twitter API Version 2 requires a single OAuth 2.0 Bearer Token for app-only authentication. This approach replaces the API Key and Access Token approach required for GetTwitter.

Configuring ConsumeTwitter with the Sample Stream setting provides similar behavior to GetTwitter Sample Endpoint setting.

Configuring ConsumeTwitter with the Search Stream setting requires creating Filter Rules using the Twitter REST API outside of processor properties.

Flow Definitions

The Deprecated Flow Definition includes GetTwitter configured with the Sample Endpoint and without filters.

The Migrated Flow Definition includes ConsumeTwitter configured with the Sample Stream.

HashAttribute

Component Class

org.apache.nifi.processors.standard.HashAttribute

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

Alternatives

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.

...

PropertyValue
label-hashlabel${label:hash('SHA-256')}

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.

...

Component Class

org.apache.nifi.processors.standard.HashContent

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar
Deprecation TypeComponent Class
Deprecated Version1.8.0
Migration DifficultyLOW
Migration TypeComponent Replacement

Alternatives

Component Class

org.apache.nifi.processors.standard.CryptographHashContentCryptographicHashContent

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.

...

Both Processors have a Hash Algorithm property, but the CryptographicHashContent Processor supports a scoped set of well-defined algorithms instead of depending on the algorithms that the Java Runtime Security Provider enumerates.

Flow Definitions

The Deprecated Flow Definition includes HashContent configured to write a FlowFile attribute named hash.value using the SHA-256 algorithm.

...

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.

...

Creating and configuring an instance of StandardProxyConfigurationService with the corresponding property values is required for upgrading.

Flow Definitions

The Deprecated Flow Definition includes InvokeHTTP configured with Proxy Host and Proxy Port properties.

...

Component Class

org.apache.nifi.processors.standard.PostHTTP

Bundle Grouporg.apache.nifi
Bundle Artifactnifi-standard-nar
Deprecation TypeComponent Class
Deprecated Version1.9.0
Migration DifficultyMEDIUM
Migration TypeComponent Replacement

Alternatives

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.

...

PropertyValue
HTTP MethodPOST
HTTP URLHTTP or HTTPS location

Flow Definitions

The Deprecated Flow Definition includes PostHTTP configured to send to ListenHTTP without custom FlowFile binary packaging.

...

Component Class

org.apache.nifi.processors.standard.PutJMS

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

Alternatives

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.

...

PropertyValue
Connection Factory ServiceJMSConnectionFactoryProvider
Destination Name
Destination Type

Flow Definitions

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

...