Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Celebrating as our community reaches 100,000 members! Thank you!
avatar
Cloudera Employee

In this article, we will learn how to build Twitter NiFi template in a flow management datahub.

Pre-Requisite 

CDP environment is created and flow management datahub is installed. In that, the required users are added.

Steps

  1. Login to NiFi by clicking on the NiFi log as shown below:
    VeenaJoshi_0-1613661260320.png
  2. Add GetTwitter process group and put a file from the process group as follows:
    z.png
  3. Configure Twitter process group by right-clicking on GetTwitter process group, and then select Configure; add required parameters: Consumer Key, Consumer Secret, Access Token, Access Token Secret as shown as follows:
    Screenshot 2021-02-18 at 8.56.35 PM.png
    image.png
  4. Configure the PUT file process to store the Twitter JSON files in one of the NiFi hosts.
    VeenaJoshi_1-1613662582182.png

    To verify the data received, log in to one of the NiFi hosts, and check the directory mentioned in the above step. 
352 Views