Streaming Data with Cloudera Data Flow (CDF) Into Public Cloud (CDP)
Tags: aws, azure, cdf, cdp
Published: 2020-05-04 21:18:11

---
title: Streaming Data with Cloudera Data Flow (CDF) Into Public Cloud (CDP)
published: true
date: 2020-04-30 21:11:00 UTC
tags: aws,azure,cdf,cdp
canonical_url: 
---

## **Streaming Data with Cloudera Data Flow (CDF) Into Public Cloud (CDP)**
  
[![](https://1.bp.blogspot.com/-2fyJNoH55Ss/XqTZlOyfInI/AAAAAAAAZzE/qwPSSYXW25gk3pUN3Nr5pOsD-b3BVfLzACLcBGAsYHQ/s640/nativestreaming.png)](https://1.bp.blogspot.com/-2fyJNoH55Ss/XqTZlOyfInI/AAAAAAAAZzE/qwPSSYXW25gk3pUN3Nr5pOsD-b3BVfLzACLcBGAsYHQ/s1600/nativestreaming.png)  
  
[![](https://1.bp.blogspot.com/-l1E2bDnR7iY/XqTZ7kaVgoI/AAAAAAAAZ2U/kvZN4faivIYLLJlEtN6MOCCN2XYZT9FpACLcBGAsYHQ/s640/twitteroverview.png)](https://1.bp.blogspot.com/-l1E2bDnR7iY/XqTZ7kaVgoI/AAAAAAAAZ2U/kvZN4faivIYLLJlEtN6MOCCN2XYZT9FpACLcBGAsYHQ/s1600/twitteroverview.png)  
  
At Cloudera Now NYC, I showed a demo on streaming data from MQTT Sensors and Twitter that was running in AWS.   Today I am going to walk you through some of the details and give you the tools to build your own streaming demos in CDP Public Cloud.   If you missed that event, you can watch a recording [here](https://www.cloudera.com/about/events/cloudera-now-cdp.html).  
  

[![](https://1.bp.blogspot.com/-hlp97S-I1yc/XqTZarcKaqI/AAAAAAAAZxI/ZdXy8pYdQ7c8TyV2RWaiB_tWOCGjRxwIwCLcBGAsYHQ/s640/clouderanowagenda.png)](https://1.bp.blogspot.com/-hlp97S-I1yc/XqTZarcKaqI/AAAAAAAAZxI/ZdXy8pYdQ7c8TyV2RWaiB_tWOCGjRxwIwCLcBGAsYHQ/s1600/clouderanowagenda.png)  
  
Let's get streaming!  
  
 [![](https://1.bp.blogspot.com/-tzSNc15SG_s/XqTZZVjtpGI/AAAAAAAAZw4/hXCjIENvWF8Mni2xc3V9dmycYXnoEqF0gCLcBGAsYHQ/s640/cdpYourEnterpriseCloud.png)](https://1.bp.blogspot.com/-tzSNc15SG_s/XqTZZVjtpGI/AAAAAAAAZw4/hXCjIENvWF8Mni2xc3V9dmycYXnoEqF0gCLcBGAsYHQ/s1600/cdpYourEnterpriseCloud.png)  
  
Let's login, I use Okta for Single-Sign On (SSO) which makes this so easy.  Cloudera Flow Management (CFM) Apache NiFi is officially available in the CDP Public Cloud.   So get started [here](https://docs.cloudera.com/cdf-datahub/7.1.0/quick-start-sm/topics/cdf-datahub-sm-cluster-quick-start-prereq.html).   We will be following the guide ([https://docs.cloudera.com/cdf-datahub/7.1.0/howto-data-ingest.html](https://docs.cloudera.com/cdf-datahub/7.1.0/howto-data-ingest.html)).   We are running CDF DataHub on CDP 7.1.0.  
  
There's a lot of data engineering and streaming tasks I can accomplish with few clicks.   I can bring up a virtual datawarehouse and use tools like Apache Hue and Data Analytics Studio to examine database and tables and run queries.  
  
[![](https://1.bp.blogspot.com/-R672R44QOIQ/XqTZY63exLI/AAAAAAAAZww/Bo7YMlmn6gQR383yLqtDATgQuEDfspBoQCLcBGAsYHQ/s640/cdpClouderaDataWarehouse.png)](https://1.bp.blogspot.com/-R672R44QOIQ/XqTZY63exLI/AAAAAAAAZww/Bo7YMlmn6gQR383yLqtDATgQuEDfspBoQCLcBGAsYHQ/s1600/cdpClouderaDataWarehouse.png)  
  
We go to Data Hub Clusters and can see the latest Apache NiFi in there.   You can see we have Data Engineering, Kafka and NiFi clusters already built and ready to go.   It only takes a click, a few drop down settings and a name to build and deploy in minutes.   This saves me and my team so much time.   Thanks Cloud Team!  
  

 [![](https://1.bp.blogspot.com/-3DxbzV8-Mgk/XqTZbo8jOeI/AAAAAAAAZxU/MiiBRyQ8EqwTF1nTMXTkX8vWcRtvat3KQCLcBGAsYHQ/s640/cmgdatahubs.png)](https://1.bp.blogspot.com/-3DxbzV8-Mgk/XqTZbo8jOeI/AAAAAAAAZxU/MiiBRyQ8EqwTF1nTMXTkX8vWcRtvat3KQCLcBGAsYHQ/s1600/cmgdatahubs.png)
  

[![](https://1.bp.blogspot.com/-J1YCWfLAJ1w/XqTZbWg89aI/AAAAAAAAZxQ/ssPNSXR08DYh0gsuov515zdfNWxy1KL0ACLcBGAsYHQ/s640/cmKafka.png)](https://1.bp.blogspot.com/-J1YCWfLAJ1w/XqTZbWg89aI/AAAAAAAAZxQ/ssPNSXR08DYh0gsuov515zdfNWxy1KL0ACLcBGAsYHQ/s1600/cmKafka.png)

  

**Kafka and NiFi Data Hub Clusters**

[  
 ![](https://1.bp.blogspot.com/-S49bsmxpiHc/XqTZeEfgwOI/AAAAAAAAZx4/MSEZHv3cA8UdWBqyBoN2REkruhFKRfqvgCLcBGAsYHQ/s640/datahub.png)](https://1.bp.blogspot.com/-S49bsmxpiHc/XqTZeEfgwOI/AAAAAAAAZx4/MSEZHv3cA8UdWBqyBoN2REkruhFKRfqvgCLcBGAsYHQ/s1600/datahub.png)
  

**Provision a New Data Hub - Op Db**

  

[![](https://1.bp.blogspot.com/-7splt6XsBLc/XqTZeQhnoOI/AAAAAAAAZyA/w1DfmnUyl-QNqMDodGxWotwVg--CpEf3wCLcBGAsYHQ/s640/datahubsprovisionhbase.png)](https://1.bp.blogspot.com/-7splt6XsBLc/XqTZeQhnoOI/AAAAAAAAZyA/w1DfmnUyl-QNqMDodGxWotwVg--CpEf3wCLcBGAsYHQ/s1600/datahubsprovisionhbase.png)

  

**Provision a New Data Hub - NiFi**

  

[![](https://1.bp.blogspot.com/-Kp35HM436AM/XqTZwdZdzuI/AAAAAAAAZ0o/nWGjszLncFYWxpx4yAs3CmJxosxuIq2ZQCLcBGAsYHQ/s640/provisiondatahub.png)](https://1.bp.blogspot.com/-Kp35HM436AM/XqTZwdZdzuI/AAAAAAAAZ0o/nWGjszLncFYWxpx4yAs3CmJxosxuIq2ZQCLcBGAsYHQ/s1600/provisiondatahub.png)
  

[![](https://1.bp.blogspot.com/-RhED_l2zm2E/XqTZwpShrLI/AAAAAAAAZ0s/183rqxrNoCo1Cu12GyT4gd-0Apc4WxIygCLcBGAsYHQ/s640/provisiondatahubaws.png)](https://1.bp.blogspot.com/-RhED_l2zm2E/XqTZwpShrLI/AAAAAAAAZ0s/183rqxrNoCo1Cu12GyT4gd-0Apc4WxIygCLcBGAsYHQ/s1600/provisiondatahubaws.png)
  
Once build, the Kafka Data Hub is our launching place for Cloudera Manager, Schema Registry and SMM.  
  
[![](https://1.bp.blogspot.com/-J67u2-LyEgA/XqTZjW_TKII/AAAAAAAAZyw/Q8GWAMgCzUgYgIeE5opzUQtVfwgKNcEFwCLcBGAsYHQ/s640/kafkadatahub.png)](https://1.bp.blogspot.com/-J67u2-LyEgA/XqTZjW_TKII/AAAAAAAAZyw/Q8GWAMgCzUgYgIeE5opzUQtVfwgKNcEFwCLcBGAsYHQ/s1600/kafkadatahub.png)  
  

**Provision a New Data Hub - Real-Time Data Mart**

  

[![](https://1.bp.blogspot.com/-HDZQleg-G0g/XqTZxO9PL5I/AAAAAAAAZ0w/xgtlnRYmnpMjbrF8HYeIhJFwZl5gnJW2QCLcBGAsYHQ/s640/provisionkafkadh.png)](https://1.bp.blogspot.com/-HDZQleg-G0g/XqTZxO9PL5I/AAAAAAAAZ0w/xgtlnRYmnpMjbrF8HYeIhJFwZl5gnJW2QCLcBGAsYHQ/s1600/provisionkafkadh.png)
  

  

**Data Engineering on AWS Details**
  

[![](https://1.bp.blogspot.com/-NtuZ2PyRpRQ/XqTZe72hz1I/AAAAAAAAZyE/00TR1g8T0Pw3cFcg9f1VhUnDbVScIQPBQCLcBGAsYHQ/s640/datalake.png)](https://1.bp.blogspot.com/-NtuZ2PyRpRQ/XqTZe72hz1I/AAAAAAAAZyE/00TR1g8T0Pw3cFcg9f1VhUnDbVScIQPBQCLcBGAsYHQ/s1600/datalake.png)

  

**Display Environments For Your Clouds**
  
[![](https://1.bp.blogspot.com/-Skd56d9c23g/XqTZfUgVAeI/AAAAAAAAZyQ/-2bt5WNsvpEB5l9VwfeTB6YWAXiOyft7wCLcBGAsYHQ/s640/environmentdatahubs.png)](https://1.bp.blogspot.com/-Skd56d9c23g/XqTZfUgVAeI/AAAAAAAAZyQ/-2bt5WNsvpEB5l9VwfeTB6YWAXiOyft7wCLcBGAsYHQ/s1600/environmentdatahubs.png)  
  
From the DataHub cluster that we built for CFM - Apache NiFi or for Apache Kafka I can access Cloudera Manager to do monitoring, management and other tasks that Cloudera administrators are use to like searching logs.  
  

[![](https://1.bp.blogspot.com/-gr23fXoUUT4/XqTZaVZ1drI/AAAAAAAAZxE/N4pPEqr2RFchi_vVkvpWZeN6nwJZbwsLQCLcBGAsYHQ/s640/clouderamanagerkafkalogs.png)](https://1.bp.blogspot.com/-gr23fXoUUT4/XqTZaVZ1drI/AAAAAAAAZxE/N4pPEqr2RFchi_vVkvpWZeN6nwJZbwsLQCLcBGAsYHQ/s1600/clouderamanagerkafkalogs.png)
  

Let's jump into the Apache NiFi UI from CDP Data Hub.

  

[![](https://1.bp.blogspot.com/-j5qBA5YKrwI/XqTZquFctGI/AAAAAAAAZzw/JxGED5FgfkEI_nKp54boo_EcYcGncFKSQCLcBGAsYHQ/s640/nifidhenvironment.png)](https://1.bp.blogspot.com/-j5qBA5YKrwI/XqTZquFctGI/AAAAAAAAZzw/JxGED5FgfkEI_nKp54boo_EcYcGncFKSQCLcBGAsYHQ/s1600/nifidhenvironment.png)

  

Once I've logged into Flow Management, I can as an administrator see some of the server monitoring, metrics and administrative features and areas.  
  
[![](https://1.bp.blogspot.com/-Ms8A16RZvtU/XqTZZgjcj_I/AAAAAAAAZw8/qiWFaQukpbIGlgaFnL88Z_juTgqyh8LfQCLcBGAsYHQ/s640/cfm2about.png)](https://1.bp.blogspot.com/-Ms8A16RZvtU/XqTZZgjcj_I/AAAAAAAAZw8/qiWFaQukpbIGlgaFnL88Z_juTgqyh8LfQCLcBGAsYHQ/s1600/cfm2about.png)  
  

[![](https://1.bp.blogspot.com/-SKMSfyt-9Vk/XqTZruhsG3I/AAAAAAAAZz4/qHnYPzguED8EdyXkG_cXh1W2FfqTdCr_wCLcBGAsYHQ/s640/nifioverview.png)](https://1.bp.blogspot.com/-SKMSfyt-9Vk/XqTZruhsG3I/AAAAAAAAZz4/qHnYPzguED8EdyXkG_cXh1W2FfqTdCr_wCLcBGAsYHQ/s1600/nifioverview.png)
  
  
Our module for Twitter ingest on CDP Data Hub.  
  
[![](https://1.bp.blogspot.com/-CFIK8iMLLpI/XqTZfGjXd8I/AAAAAAAAZyM/vpnbpTHheiIDJsb7zcWe-9isFoD4ignRACLcBGAsYHQ/s640/downloadaflow.png)](https://1.bp.blogspot.com/-CFIK8iMLLpI/XqTZfGjXd8I/AAAAAAAAZyM/vpnbpTHheiIDJsb7zcWe-9isFoD4ignRACLcBGAsYHQ/s1600/downloadaflow.png)  
  
[![](https://1.bp.blogspot.com/-HjrIBziO-cM/XqTZcJt39mI/AAAAAAAAZxc/HPjwWJWkXSM1Rsltf_dOPFJdEEWvOM7cQCLcBGAsYHQ/s640/commitlocalchanges.png)](https://1.bp.blogspot.com/-HjrIBziO-cM/XqTZcJt39mI/AAAAAAAAZxc/HPjwWJWkXSM1Rsltf_dOPFJdEEWvOM7cQCLcBGAsYHQ/s1600/commitlocalchanges.png)  
  
We can download our flow immediately and quickly sent our code to version control.  
  

[  
 ![](https://1.bp.blogspot.com/-djG2yYsA7XU/XqTZgGcFjpI/AAAAAAAAZyU/ODnHcP45M1kbzno_mSC7cKkyNgTwc2AFwCLcBGAsYHQ/s640/flowSensorsToS3.png)](https://1.bp.blogspot.com/-djG2yYsA7XU/XqTZgGcFjpI/AAAAAAAAZyU/ODnHcP45M1kbzno_mSC7cKkyNgTwc2AFwCLcBGAsYHQ/s1600/flowSensorsToS3.png)

  

  
We consume MQTT messages sent from my IoT gateway that is pushing messages from multiple devices via MQTT.  
  
[![](https://1.bp.blogspot.com/-fzOTDmy76KY/XqTZdHTjFAI/AAAAAAAAZxw/3Y-78L9Ibn0Kh89lng-n843Ziq9c-sChQCLcBGAsYHQ/s640/consumemqttoverview.png)](https://1.bp.blogspot.com/-fzOTDmy76KY/XqTZdHTjFAI/AAAAAAAAZxw/3Y-78L9Ibn0Kh89lng-n843Ziq9c-sChQCLcBGAsYHQ/s1600/consumemqttoverview.png)  
  
Using parameters that can be set via DevOps or via Apache NiFi, we setup a reusable component to read from any MQTT broker.   Username, password, broker uri and topic are parameters that we set and can change based on any use needed.  
  
[![](https://1.bp.blogspot.com/-gHDQXDbOPcs/XqTZclAe3TI/AAAAAAAAZxk/8BNWZvSwzG01hwGDr6l44ZEh4v0VvoAeQCLcBGAsYHQ/s640/consumeMqtt2.png)](https://1.bp.blogspot.com/-gHDQXDbOPcs/XqTZclAe3TI/AAAAAAAAZxk/8BNWZvSwzG01hwGDr6l44ZEh4v0VvoAeQCLcBGAsYHQ/s1600/consumeMqtt2.png)  
[![](https://1.bp.blogspot.com/-TJDuJVpJdAg/XqTZcROBpEI/AAAAAAAAZxg/hkV7ZNLq5AEV8CkYH83XCk4gMidBuHhIwCLcBGAsYHQ/s640/consumeMqtt.png)](https://1.bp.blogspot.com/-TJDuJVpJdAg/XqTZcROBpEI/AAAAAAAAZxg/hkV7ZNLq5AEV8CkYH83XCk4gMidBuHhIwCLcBGAsYHQ/s1600/consumeMqtt.png)  
  
  
Ingesting from Twitter is just as easy as reading from MQTT.  
  

[![](https://1.bp.blogspot.com/-VK-RSoYG9QY/XqTZgocNezI/AAAAAAAAZyY/TpomO6sSjOE1xXDMx9y21AEwYgl7SI78wCLcBGAsYHQ/s640/gettwitter.png)](https://1.bp.blogspot.com/-VK-RSoYG9QY/XqTZgocNezI/AAAAAAAAZyY/TpomO6sSjOE1xXDMx9y21AEwYgl7SI78wCLcBGAsYHQ/s1600/gettwitter.png)
  
We can also parameterize our Twitter ingest for easy reuse.  For this twitter ingest, we have some sensitive values that are protected as well as some query terms for twitter to limit our data to airline data.  
  
[![](https://1.bp.blogspot.com/-e5TEY7ks80s/XqTZ7a-1xZI/AAAAAAAAZ2Q/xnGRXgD6JJIzn5KUucm1CGZDVoMasYNRgCLcBGAsYHQ/s640/twitterget.png)](https://1.bp.blogspot.com/-e5TEY7ks80s/XqTZ7a-1xZI/AAAAAAAAZ2Q/xnGRXgD6JJIzn5KUucm1CGZDVoMasYNRgCLcBGAsYHQ/s1600/twitterget.png)  
  
  
Editing parameters from the NiFi UI is super easy.  
  
[![](https://1.bp.blogspot.com/-SD0kXHVndxQ/XqTZ7wJIQqI/AAAAAAAAZ2Y/k7BeEUbiJcoujHNHkBSldvXHPdVxlJseACLcBGAsYHQ/s640/twittertermstofilterparameters.png)](https://1.bp.blogspot.com/-SD0kXHVndxQ/XqTZ7wJIQqI/AAAAAAAAZ2Y/k7BeEUbiJcoujHNHkBSldvXHPdVxlJseACLcBGAsYHQ/s1600/twittertermstofilterparameters.png)  
  
[![](https://1.bp.blogspot.com/-1v_DxoJGISY/XqTZ8PaB5uI/AAAAAAAAZ2c/nBIXZtbCdgUa10PtYND6pxgH76xLVpMRwCLcBGAsYHQ/s640/updateParameterContext.png)](https://1.bp.blogspot.com/-1v_DxoJGISY/XqTZ8PaB5uI/AAAAAAAAZ2c/nBIXZtbCdgUa10PtYND6pxgH76xLVpMRwCLcBGAsYHQ/s1600/updateParameterContext.png)  
  
All the data passing through the nodes of my cluster.  
  
[![](https://1.bp.blogspot.com/-JOcNIIBMf8I/XqTZbFnT2MI/AAAAAAAAZxM/Ig9CxX4JuPMmVpHdovDwgCn6NOZjOyKxwCLcBGAsYHQ/s640/clustergroupsummary.png)](https://1.bp.blogspot.com/-JOcNIIBMf8I/XqTZbFnT2MI/AAAAAAAAZxM/Ig9CxX4JuPMmVpHdovDwgCn6NOZjOyKxwCLcBGAsYHQ/s1600/clustergroupsummary.png)  
  
Apache NiFi has a ton of tabs for visualizing any of the metrics of interest.  
  

[![](https://1.bp.blogspot.com/-w8JIbLUNMyg/XqTZmD0JgHI/AAAAAAAAZzM/WxFvAxyQX5Esm91drYyVzqsGGApw7un2gCLcBGAsYHQ/s640/nificluster.png)](https://1.bp.blogspot.com/-w8JIbLUNMyg/XqTZmD0JgHI/AAAAAAAAZzM/WxFvAxyQX5Esm91drYyVzqsGGApw7un2gCLcBGAsYHQ/s1600/nificluster.png)
  

[![](https://1.bp.blogspot.com/-m1NhT3-DJCY/XqTZmvf1RhI/AAAAAAAAZzQ/cuihXdu-lQYqr_Ms6HjBjxiaE0e8l8eYgCLcBGAsYHQ/s640/nificlustercontentrepo.png)](https://1.bp.blogspot.com/-m1NhT3-DJCY/XqTZmvf1RhI/AAAAAAAAZzQ/cuihXdu-lQYqr_Ms6HjBjxiaE0e8l8eYgCLcBGAsYHQ/s1600/nificlustercontentrepo.png)
  

[![](https://1.bp.blogspot.com/-hNccEAIHZlo/XqTZnNLx29I/AAAAAAAAZzU/PTcsrQlxWaoeWPdsv6rK2NykQTh-OzJ8QCLcBGAsYHQ/s640/nificlusterflowfile.png)](https://1.bp.blogspot.com/-hNccEAIHZlo/XqTZnNLx29I/AAAAAAAAZzU/PTcsrQlxWaoeWPdsv6rK2NykQTh-OzJ8QCLcBGAsYHQ/s1600/nificlusterflowfile.png)
  

[![](https://1.bp.blogspot.com/-JXEuXAEVJxI/XqTZnoadNRI/AAAAAAAAZzY/r8jaGiNLHWkd0aaNTWtGfsa0Yoa24U0RgCLcBGAsYHQ/s640/nificlusterjvm.png)](https://1.bp.blogspot.com/-JXEuXAEVJxI/XqTZnoadNRI/AAAAAAAAZzY/r8jaGiNLHWkd0aaNTWtGfsa0Yoa24U0RgCLcBGAsYHQ/s1600/nificlusterjvm.png)
  

[![](https://1.bp.blogspot.com/-pnNE-oy1hSU/XqTZoKL6OQI/AAAAAAAAZzc/HU_bo4arGDEMffR6lmHHFphIlBU_Ev95ACLcBGAsYHQ/s640/nificlusternodes.png)](https://1.bp.blogspot.com/-pnNE-oy1hSU/XqTZoKL6OQI/AAAAAAAAZzc/HU_bo4arGDEMffR6lmHHFphIlBU_Ev95ACLcBGAsYHQ/s1600/nificlusternodes.png)
  

[![](https://1.bp.blogspot.com/-oI7FmQRovYU/XqTZogmvG8I/AAAAAAAAZzg/Ma1kbQ7g4AMwtBjrj3xL61S0B0ghCemigCLcBGAsYHQ/s640/nificlusterprovenance.png)](https://1.bp.blogspot.com/-oI7FmQRovYU/XqTZogmvG8I/AAAAAAAAZzg/Ma1kbQ7g4AMwtBjrj3xL61S0B0ghCemigCLcBGAsYHQ/s1600/nificlusterprovenance.png)
  

[![](https://1.bp.blogspot.com/-6F3PwluoyIc/XqTZpNT7t0I/AAAAAAAAZzk/fhN4OmB2Pu8Q9djj_pEsoN5zr3WleI0KQCLcBGAsYHQ/s640/nificlustersystem.png)](https://1.bp.blogspot.com/-6F3PwluoyIc/XqTZpNT7t0I/AAAAAAAAZzk/fhN4OmB2Pu8Q9djj_pEsoN5zr3WleI0KQCLcBGAsYHQ/s1600/nificlustersystem.png)
  

[![](https://1.bp.blogspot.com/-ZdXIdj2kXoc/XqTZpkn-KjI/AAAAAAAAZzo/D0NnU8T11SwryW7Gp3uuzxR1vxZYQha0ACLcBGAsYHQ/s640/nificontrollerservices.png)](https://1.bp.blogspot.com/-ZdXIdj2kXoc/XqTZpkn-KjI/AAAAAAAAZzo/D0NnU8T11SwryW7Gp3uuzxR1vxZYQha0ACLcBGAsYHQ/s1600/nificontrollerservices.png)
  

[![](https://1.bp.blogspot.com/-VxARaZTfSpo/XqTZqND_xeI/AAAAAAAAZzs/wkeBEPjGFewStH3R6Owi96fG1KLZtyE8wCLcBGAsYHQ/s640/nificounters.png)](https://1.bp.blogspot.com/-VxARaZTfSpo/XqTZqND_xeI/AAAAAAAAZzs/wkeBEPjGFewStH3R6Owi96fG1KLZtyE8wCLcBGAsYHQ/s1600/nificounters.png)

  

[![](https://1.bp.blogspot.com/-MJGAV1iLuDE/XqTZtClTCzI/AAAAAAAAZ0E/9n23ENJ3RNQ9yFTw_J1v7RquYtqz5-yPACLcBGAsYHQ/s640/nifiregistrysettings.png)](https://1.bp.blogspot.com/-MJGAV1iLuDE/XqTZtClTCzI/AAAAAAAAZ0E/9n23ENJ3RNQ9yFTw_J1v7RquYtqz5-yPACLcBGAsYHQ/s1600/nifiregistrysettings.png)
  

[![](https://1.bp.blogspot.com/-D3uss4w0vaQ/XqTZtqdObQI/AAAAAAAAZ0I/LKSYxj-5C2oElUF6gQV6wREbOFPBk68mwCLcBGAsYHQ/s640/nifireportingtaskcontrollerservices.png)](https://1.bp.blogspot.com/-D3uss4w0vaQ/XqTZtqdObQI/AAAAAAAAZ0I/LKSYxj-5C2oElUF6gQV6wREbOFPBk68mwCLcBGAsYHQ/s1600/nifireportingtaskcontrollerservices.png)
  

[![](https://1.bp.blogspot.com/-KIpsICXNyO0/XqTZuGlLs1I/AAAAAAAAZ0M/eG4jgZ5AL98Tp7uOmtni8j0FIDWrFojoQCLcBGAsYHQ/s640/nifirunresults.png)](https://1.bp.blogspot.com/-KIpsICXNyO0/XqTZuGlLs1I/AAAAAAAAZ0M/eG4jgZ5AL98Tp7uOmtni8j0FIDWrFojoQCLcBGAsYHQ/s1600/nifirunresults.png)
  

[![](https://1.bp.blogspot.com/-8gKBj6M1beI/XqTZupy6bRI/AAAAAAAAZ0Q/CmMXUSimTjUHb5sWRBPZ60O_SYG8Kd2_wCLcBGAsYHQ/s640/nifisummaryconnections.png)](https://1.bp.blogspot.com/-8gKBj6M1beI/XqTZupy6bRI/AAAAAAAAZ0Q/CmMXUSimTjUHb5sWRBPZ60O_SYG8Kd2_wCLcBGAsYHQ/s1600/nifisummaryconnections.png)
  

[![](https://1.bp.blogspot.com/-DRQgwDIk_TM/XqTZvJt4T1I/AAAAAAAAZ0U/pOBg4Ocdzt8bHdau2NhXkmyR5REMurBaQCLcBGAsYHQ/s640/nifisummaryprocessgroups.png)](https://1.bp.blogspot.com/-DRQgwDIk_TM/XqTZvJt4T1I/AAAAAAAAZ0U/pOBg4Ocdzt8bHdau2NhXkmyR5REMurBaQCLcBGAsYHQ/s1600/nifisummaryprocessgroups.png)
  

[![](https://1.bp.blogspot.com/-V5X3YzQ3gMU/XqTZvgMHMOI/AAAAAAAAZ0Y/pnP9B2PdjSoCQsmbXZRlC4_D0UiSbdMuQCLcBGAsYHQ/s640/nifisummaryprocessors.png)](https://1.bp.blogspot.com/-V5X3YzQ3gMU/XqTZvgMHMOI/AAAAAAAAZ0Y/pnP9B2PdjSoCQsmbXZRlC4_D0UiSbdMuQCLcBGAsYHQ/s1600/nifisummaryprocessors.png)

  

  

We are setting a JSON reader for inferring any JSON data.

[  
 ![](https://1.bp.blogspot.com/-z0ZYIHfVIaM/XqTZrG5BojI/AAAAAAAAZz0/iDYkTYfXXBgKtbUv11dTYfjyysCaf9o6ACLcBGAsYHQ/s640/nifijsontreereaderinfer.png)](https://1.bp.blogspot.com/-z0ZYIHfVIaM/XqTZrG5BojI/AAAAAAAAZz0/iDYkTYfXXBgKtbUv11dTYfjyysCaf9o6ACLcBGAsYHQ/s1600/nifijsontreereaderinfer.png)
  

  

To write to Kafka, we have some parameters for brokers and a reader/writer for records.  We use the prebuilt "Default NiFi SSL Context Service" for SSL security.   We also need to specify:  SASL\_SSL, PLAIN, your username for CDP, your password for CDP.  

  

[![](https://1.bp.blogspot.com/-BosaP0FsKjI/XqTZxjKO8gI/AAAAAAAAZ04/1k27qYIMo6k5Xb4NxTxZlIq0g91oSgORQCLcBGAsYHQ/s640/publishKafkaTwitter.png)](https://1.bp.blogspot.com/-BosaP0FsKjI/XqTZxjKO8gI/AAAAAAAAZ04/1k27qYIMo6k5Xb4NxTxZlIq0g91oSgORQCLcBGAsYHQ/s1600/publishKafkaTwitter.png)  
  

[![](https://1.bp.blogspot.com/-dC67zTg-iug/XqTZxir5mHI/AAAAAAAAZ08/HWokfdq5LmU-s4hJEtfS2dn8qDoR0aLpACLcBGAsYHQ/s640/publishKafkaTwitter2.png)](https://1.bp.blogspot.com/-dC67zTg-iug/XqTZxir5mHI/AAAAAAAAZ08/HWokfdq5LmU-s4hJEtfS2dn8qDoR0aLpACLcBGAsYHQ/s1600/publishKafkaTwitter2.png)

  

On a local edge server, We are publishing sensor data to MQTT.  
  
[![](https://1.bp.blogspot.com/-H-sIw1Q1i-o/XqTZyfG0RdI/AAAAAAAAZ1E/8PMSnki_ZKEpRRcQHk0hHAEDmA0zGTPyACLcBGAsYHQ/s640/publishmqttlocalnififlow.png)](https://1.bp.blogspot.com/-H-sIw1Q1i-o/XqTZyfG0RdI/AAAAAAAAZ1E/8PMSnki_ZKEpRRcQHk0hHAEDmA0zGTPyACLcBGAsYHQ/s1600/publishmqttlocalnififlow.png)  
  

[![](https://1.bp.blogspot.com/-grqxksbrIbs/XqTZyLUA8LI/AAAAAAAAZ1A/se2I6jJhNVQmUsoZ1EVRfjiwjbn45L5CwCLcBGAsYHQ/s640/publishmqtt.png)](https://1.bp.blogspot.com/-grqxksbrIbs/XqTZyLUA8LI/AAAAAAAAZ1A/se2I6jJhNVQmUsoZ1EVRfjiwjbn45L5CwCLcBGAsYHQ/s1600/publishmqtt.png)

  

**PutHDFS Configuration (Store GZIPPED JSON Files)**  
  

[![](https://1.bp.blogspot.com/-6zLrK6jGYH4/XqTZVGQ6TnI/AAAAAAAAZwM/HTteX-ekXTMJd-PstCEH_gK0Fn9aOw30ACLcBGAsYHQ/s640/PutHDFSS3.png)](https://1.bp.blogspot.com/-6zLrK6jGYH4/XqTZVGQ6TnI/AAAAAAAAZwM/HTteX-ekXTMJd-PstCEH_gK0Fn9aOw30ACLcBGAsYHQ/s1600/PutHDFSS3.png)
  
**Put To Hive Streaming Table**  
  

[![](https://1.bp.blogspot.com/-sx_lpugDh3U/XqTZVXRfKvI/AAAAAAAAZwQ/wc8krC7FhLU3cTt3cA5NmepOs93bwXArACLcBGAsYHQ/s640/PutHive3Streaming.png)](https://1.bp.blogspot.com/-sx_lpugDh3U/XqTZVXRfKvI/AAAAAAAAZwQ/wc8krC7FhLU3cTt3cA5NmepOs93bwXArACLcBGAsYHQ/s1600/PutHive3Streaming.png)
  
**PutORC Files to CNOW3, autoconverted JSON to ORC**  
  

[![](https://1.bp.blogspot.com/-7BACqV4sajQ/XqTZ0IkYVVI/AAAAAAAAZ1U/2URMmokLTQMa_zL6-xyzOb5uxnKQMl0AACLcBGAsYHQ/s640/putorc.png)](https://1.bp.blogspot.com/-7BACqV4sajQ/XqTZ0IkYVVI/AAAAAAAAZ1U/2URMmokLTQMa_zL6-xyzOb5uxnKQMl0AACLcBGAsYHQ/s1600/putorc.png)

  

  

[![](https://1.bp.blogspot.com/-nErV8SjDqH4/XqTZzcm2sSI/AAAAAAAAZ1M/k7QldJ_8Z1sV0ByHEdIzI1HwyfIrqMUGACLcBGAsYHQ/s640/putOrcTwitter.png)](https://1.bp.blogspot.com/-nErV8SjDqH4/XqTZzcm2sSI/AAAAAAAAZ1M/k7QldJ_8Z1sV0ByHEdIzI1HwyfIrqMUGACLcBGAsYHQ/s1600/putOrcTwitter.png)

  

[  
](https://1.bp.blogspot.com/-f2SoVJy9uGo/XqTZ2JYzCQI/AAAAAAAAZ1k/jZJ_tobTtDkLuRY2q03nmkxIDdB3woAWACLcBGAsYHQ/s1600/showlocalchanges.png)

  

When we push to PutORC it will build us the DDL for an external table automatically, just grab it from data provenance.
  

  

  

[![](https://1.bp.blogspot.com/-76pswE6m4GA/XqTZhWU6WXI/AAAAAAAAZyg/esPvOrP29moT3VFlqGvi7loynG-MQuUPwCLcBGAsYHQ/s640/hiveddlresults.png)](https://1.bp.blogspot.com/-76pswE6m4GA/XqTZhWU6WXI/AAAAAAAAZyg/esPvOrP29moT3VFlqGvi7loynG-MQuUPwCLcBGAsYHQ/s1600/hiveddlresults.png)
  
For storing to Apache Hive 3 tables, we have to set some parameters for Hive Configuration and the metastore from our data store.  
  
[![](https://1.bp.blogspot.com/-UL9rGQKEylI/XqTZgl66e9I/AAAAAAAAZyc/_LKeUYgq2yoQlCGonJxuj-V34hYCqw4JwCLcBGAsYHQ/s640/hiveconfiguration.png)](https://1.bp.blogspot.com/-UL9rGQKEylI/XqTZgl66e9I/AAAAAAAAZyc/_LKeUYgq2yoQlCGonJxuj-V34hYCqw4JwCLcBGAsYHQ/s1600/hiveconfiguration.png)  
  

[![](https://1.bp.blogspot.com/-vCuTv--yMVk/XqTZhzgI2gI/AAAAAAAAZyk/7-d2hMKmd6wu7Z722Z6yTOZn3JI6i3ZogCLcBGAsYHQ/s640/hivemetastoreparameter.png)](https://1.bp.blogspot.com/-vCuTv--yMVk/XqTZhzgI2gI/AAAAAAAAZyk/7-d2hMKmd6wu7Z722Z6yTOZn3JI6i3ZogCLcBGAsYHQ/s1600/hivemetastoreparameter.png)

  

  

In Apache NiFi, Ranger controls policies for permissions to NiFi.  CDP creates one for NiFi Administrators which I am am member.  

[![](https://1.bp.blogspot.com/-ijDvbayjPTw/XqTZlSLS2mI/AAAAAAAAZzI/wkXWl1LKgjEYob0GRwjPvU9H8wbtXoDOQCLcBGAsYHQ/s640/nifiAccessPolicies.png)](https://1.bp.blogspot.com/-ijDvbayjPTw/XqTZlSLS2mI/AAAAAAAAZzI/wkXWl1LKgjEYob0GRwjPvU9H8wbtXoDOQCLcBGAsYHQ/s1600/nifiAccessPolicies.png)[![](https://1.bp.blogspot.com/-ClMNleTMXfg/XqTZv72tyzI/AAAAAAAAZ0c/J9LSHU3L4EwZmapAaAibrNZyymO6HskjQCLcBGAsYHQ/s640/nifiusers.png)](https://1.bp.blogspot.com/-ClMNleTMXfg/XqTZv72tyzI/AAAAAAAAZ0c/J9LSHU3L4EwZmapAaAibrNZyymO6HskjQCLcBGAsYHQ/s1600/nifiusers.png)
  

Version Control is preconfigured for CDP Data Hub NiFi users with the same single sign on.   Apache NiFi Registry will have all our modules and their versions.

  

[![](https://1.bp.blogspot.com/-vBizcmPwYsc/XqTZsvNay5I/AAAAAAAAZ0A/qCoiOjDWCJMWKsN1n2rz0SLs3sw6s-wpgCLcBGAsYHQ/s640/nifiregistry.png)](https://1.bp.blogspot.com/-vBizcmPwYsc/XqTZsvNay5I/AAAAAAAAZ0A/qCoiOjDWCJMWKsN1n2rz0SLs3sw6s-wpgCLcBGAsYHQ/s1600/nifiregistry.png)

  

Before we push NiFi changes to version control, you get a list of changes you made.

  

[![](https://1.bp.blogspot.com/-f2SoVJy9uGo/XqTZ2JYzCQI/AAAAAAAAZ1k/jZJ_tobTtDkLuRY2q03nmkxIDdB3woAWACLcBGAsYHQ/s640/showlocalchanges.png)](https://1.bp.blogspot.com/-f2SoVJy9uGo/XqTZ2JYzCQI/AAAAAAAAZ1k/jZJ_tobTtDkLuRY2q03nmkxIDdB3woAWACLcBGAsYHQ/s1600/showlocalchanges.png)
  

  

We can see data as it travels through Apache NiFi in it's built-in data provenance (lineage).

  

[![](https://1.bp.blogspot.com/-8SfEezklgeg/XqTZsP6vnQI/AAAAAAAAZz8/JtXvOKpXsAQ_OSQY4k_NjEtyJOiuDbvmgCLcBGAsYHQ/s640/nifiprovenance.png)](https://1.bp.blogspot.com/-8SfEezklgeg/XqTZsP6vnQI/AAAAAAAAZz8/JtXvOKpXsAQ_OSQY4k_NjEtyJOiuDbvmgCLcBGAsYHQ/s1600/nifiprovenance.png)

  

Let's check out our new data in Amazon S3.  
  
[![](https://1.bp.blogspot.com/-BIQrLSA0pJ0/XqTZb1YHCDI/AAAAAAAAZxY/VSdUy_dpVLkVmp_Bbr7XA8uZ2jXMNInkACLcBGAsYHQ/s640/cnowcdpbucket.png)](https://1.bp.blogspot.com/-BIQrLSA0pJ0/XqTZb1YHCDI/AAAAAAAAZxY/VSdUy_dpVLkVmp_Bbr7XA8uZ2jXMNInkACLcBGAsYHQ/s1600/cnowcdpbucket.png)  
  
We want to look at our data in **Kafka** , so the we can use Cloudera Streams Messaging Manager ( **SMM** ) to view, edit, monitor and manage everything Kafka.  
  
[![](https://1.bp.blogspot.com/-aeGCQ1Zejl4/XqTZV3tDxBI/AAAAAAAAZwU/UtFCLzyvAVAOemn2ajEeQIz7xXDpMke-gCLcBGAsYHQ/s640/alertsnotifiers.png)](https://1.bp.blogspot.com/-aeGCQ1Zejl4/XqTZV3tDxBI/AAAAAAAAZwU/UtFCLzyvAVAOemn2ajEeQIz7xXDpMke-gCLcBGAsYHQ/s1600/alertsnotifiers.png)  
  
We can build alerts for any piece of the Kafka infrastructure (broker, topics, etc...)  
[![](https://1.bp.blogspot.com/-4vH7bHL4qLc/XqTZZRHOFGI/AAAAAAAAZw0/Pa6MeiKkncMRh_9Q1gttAPTIApc75HZGQCLcBGAsYHQ/s640/cdpsmmalerts.png)](https://1.bp.blogspot.com/-4vH7bHL4qLc/XqTZZRHOFGI/AAAAAAAAZw0/Pa6MeiKkncMRh_9Q1gttAPTIApc75HZGQCLcBGAsYHQ/s1600/cdpsmmalerts.png)  
  
I want to look at the lineage, provenance and metadata for my flow from data birth to storage.   Atlas is easy to use and integrated with CDP.   Thanks to the automagic configuration done in Cloudera Enterprise Data Cloud - NiFi, Kafka, HDFS, S3, Hive, HBase and more are providing data that comes together in one easy to follow diagram powered by Graphs.  
  
[![](https://1.bp.blogspot.com/-ZY__I5t2XEE/XqTZYhZRc2I/AAAAAAAAZws/xv9K85bOPAQolJ0xbi-E4FXA1_rJOjeBgCLcBGAsYHQ/s640/atlasreportingtaskrunning.png)](https://1.bp.blogspot.com/-ZY__I5t2XEE/XqTZYhZRc2I/AAAAAAAAZws/xv9K85bOPAQolJ0xbi-E4FXA1_rJOjeBgCLcBGAsYHQ/s1600/atlasreportingtaskrunning.png)  
  
The connection to Atlas is prebuilt for you in Apache NiFi, you can take a look and see.  
[![](https://1.bp.blogspot.com/-ZPTwZVfKswM/XqTZYPkPVWI/AAAAAAAAZwo/cRy2KaJ9J3YHyM3cOBlviw3cIN9K91w1wCLcBGAsYHQ/s640/atlasreporting1.png)](https://1.bp.blogspot.com/-ZPTwZVfKswM/XqTZYPkPVWI/AAAAAAAAZwo/cRy2KaJ9J3YHyM3cOBlviw3cIN9K91w1wCLcBGAsYHQ/s1600/atlasreporting1.png)  
  
  

[![](https://1.bp.blogspot.com/-5l5PhfxFVAQ/XqTZU77hUaI/AAAAAAAAZwE/RHYygEF0GJUGVhuR-jxgjahC0Vj_YVnvQCLcBGAsYHQ/s640/6582cece-0171-1000-0000-00007a1009d9%2540cm.png)](https://1.bp.blogspot.com/-5l5PhfxFVAQ/XqTZU77hUaI/AAAAAAAAZwE/RHYygEF0GJUGVhuR-jxgjahC0Vj_YVnvQCLcBGAsYHQ/s1600/6582cece-0171-1000-0000-00007a1009d9%2540cm.png)

  

  

[![](https://1.bp.blogspot.com/-nbAhThX_DPY/XqTZW5dMn5I/AAAAAAAAZwc/ZU3UVSqKQlwNM7cB_y-8QnvKm6j8VfdKgCLcBGAsYHQ/s640/apacheatlasputorc.png)](https://1.bp.blogspot.com/-nbAhThX_DPY/XqTZW5dMn5I/AAAAAAAAZwc/ZU3UVSqKQlwNM7cB_y-8QnvKm6j8VfdKgCLcBGAsYHQ/s1600/apacheatlasputorc.png)
  

[![](https://1.bp.blogspot.com/-czXO8KQsC3g/XqTZWmlp92I/AAAAAAAAZwY/ryS1yzrnloMz2t8hQi2RVA4WTTwVm9JrwCLcBGAsYHQ/s640/apacheAtlasTwitter.png)](https://1.bp.blogspot.com/-czXO8KQsC3g/XqTZWmlp92I/AAAAAAAAZwY/ryS1yzrnloMz2t8hQi2RVA4WTTwVm9JrwCLcBGAsYHQ/s1600/apacheAtlasTwitter.png)
  

[![](https://1.bp.blogspot.com/-w8bHhENUX7Q/XqTZXmNEaFI/AAAAAAAAZwk/GB9fcLPqQY8KJ0i8p6c1-FOXblcE07xRwCLcBGAsYHQ/s640/atlaskafkatokudu.png)](https://1.bp.blogspot.com/-w8bHhENUX7Q/XqTZXmNEaFI/AAAAAAAAZwk/GB9fcLPqQY8KJ0i8p6c1-FOXblcE07xRwCLcBGAsYHQ/s1600/atlaskafkatokudu.png)
  

  

Using Apache Hue, I can search our tables and produce simple charts.
  

[![](https://1.bp.blogspot.com/-LCIDolLzNTw/XqTZixelgBI/AAAAAAAAZys/XOwU6LJayMM7omzToecd5YX6FJr2YQNZwCLcBGAsYHQ/s640/huesensorschart2.png)](https://1.bp.blogspot.com/-LCIDolLzNTw/XqTZixelgBI/AAAAAAAAZys/XOwU6LJayMM7omzToecd5YX6FJr2YQNZwCLcBGAsYHQ/s1600/huesensorschart2.png)

  

  
We push our merged ORC files to /tmp/cnow3 directory in S3 controlled by HDFS and full security for an external Hive table.  
  

[![](https://1.bp.blogspot.com/-ekgoirqWRxQ/XqTZwJ0y53I/AAAAAAAAZ0g/fl8yQb2P-sgfDaRYHo7hDWj6atbX_MHJQCLcBGAsYHQ/s640/orcfiless3.png)](https://1.bp.blogspot.com/-ekgoirqWRxQ/XqTZwJ0y53I/AAAAAAAAZ0g/fl8yQb2P-sgfDaRYHo7hDWj6atbX_MHJQCLcBGAsYHQ/s1600/orcfiless3.png)
  

  

  
It becomes trivial to push data to S3, whether it's compressed JSON files or internal ORC files used in Hive 3 tables.  
  

[![](https://1.bp.blogspot.com/-BKPvkW2tDnw/XqTZ1K_D12I/AAAAAAAAZ1c/wQrmUX7vffQG7SYvdkAp6eMJWLPQ5-_7ACLcBGAsYHQ/s640/s3bucketgzip.png)](https://1.bp.blogspot.com/-BKPvkW2tDnw/XqTZ1K_D12I/AAAAAAAAZ1c/wQrmUX7vffQG7SYvdkAp6eMJWLPQ5-_7ACLcBGAsYHQ/s1600/s3bucketgzip.png)
  

[![](https://1.bp.blogspot.com/-1I8d4TYwnLw/XqTZ1scksRI/AAAAAAAAZ1g/VAlIEap_0uUWtzdIhKdHBBFIwzCeRJdogCLcBGAsYHQ/s640/s3managedtable.png)](https://1.bp.blogspot.com/-1I8d4TYwnLw/XqTZ1scksRI/AAAAAAAAZ1g/VAlIEap_0uUWtzdIhKdHBBFIwzCeRJdogCLcBGAsYHQ/s1600/s3managedtable.png)
  

  

As part of our output we push sensor readings to Slack for a sampling of current device status.

  

[![](https://1.bp.blogspot.com/-PoqR2vqhf4I/XqTZ2v3dz6I/AAAAAAAAZ1o/HRlvKYh1UCUH0gmc2gYqkCWtrFvvctGhACLcBGAsYHQ/s640/slacksensoroutput.png)](https://1.bp.blogspot.com/-PoqR2vqhf4I/XqTZ2v3dz6I/AAAAAAAAZ1o/HRlvKYh1UCUH0gmc2gYqkCWtrFvvctGhACLcBGAsYHQ/s1600/slacksensoroutput.png)
  

  

  

We can quickly access Cloudera SMM from CDP Data Hub with a single click thanks to Single Sign On.   Once in SMM, we can build alerts based on conditions within clusters, brokers, topics, consumers, producers, replication and more.
  

[![](https://1.bp.blogspot.com/-rJzOfPJbpb0/XqTZ4HdG38I/AAAAAAAAZ10/XhMzDfOK2UArSy9GLm6b8mnP6YxKG1cQQCLcBGAsYHQ/s640/smmalertpolicies.png)](https://1.bp.blogspot.com/-rJzOfPJbpb0/XqTZ4HdG38I/AAAAAAAAZ10/XhMzDfOK2UArSy9GLm6b8mnP6YxKG1cQQCLcBGAsYHQ/s1600/smmalertpolicies.png)

  

We can look at topics and see alerts in one UI.
  

[![](https://1.bp.blogspot.com/-yWZUvFubCgc/XqTZ4v1oYnI/AAAAAAAAZ14/rxt4bIbjUBEnFZ4l_8T6YDMAE92S4kFIACLcBGAsYHQ/s640/smmalerts2.png)](https://1.bp.blogspot.com/-yWZUvFubCgc/XqTZ4v1oYnI/AAAAAAAAZ14/rxt4bIbjUBEnFZ4l_8T6YDMAE92S4kFIACLcBGAsYHQ/s1600/smmalerts2.png)

[![](https://1.bp.blogspot.com/-D2PYXsdJSyA/XqTZj8A6SkI/AAAAAAAAZy0/iHXok_uPHNQg48dG3pBzXh1QJeyAukqEwCLcBGAsYHQ/s640/kafkasmm.png)](https://1.bp.blogspot.com/-D2PYXsdJSyA/XqTZj8A6SkI/AAAAAAAAZy0/iHXok_uPHNQg48dG3pBzXh1QJeyAukqEwCLcBGAsYHQ/s1600/kafkasmm.png)
  

[![](https://1.bp.blogspot.com/-dlB4E6BlNkE/XqTZkSxOpQI/AAAAAAAAZy4/q69Or4yWobkG3dsf32Waz6TuW1bFxNxuACLcBGAsYHQ/s640/kafkasmmtopicmetrics.png)](https://1.bp.blogspot.com/-dlB4E6BlNkE/XqTZkSxOpQI/AAAAAAAAZy4/q69Or4yWobkG3dsf32Waz6TuW1bFxNxuACLcBGAsYHQ/s1600/kafkasmmtopicmetrics.png)
  

  

We can view our alert messages from our history display.  
  

[![](https://1.bp.blogspot.com/-b00QQ9XKaVs/XqTZ3PNOb0I/AAAAAAAAZ1s/ThsoKF1VxiU4nXRZ50rb_gyFYJOL9GJLQCLcBGAsYHQ/s640/smmAlerts.png)](https://1.bp.blogspot.com/-b00QQ9XKaVs/XqTZ3PNOb0I/AAAAAAAAZ1s/ThsoKF1VxiU4nXRZ50rb_gyFYJOL9GJLQCLcBGAsYHQ/s1600/smmAlerts.png)

  

After alerts are triggered, we can see a history of them in the UI for a single pane of glass view of the system.
  

[![](https://1.bp.blogspot.com/-EIJ1P0y2OqE/XqTZ5DtFzuI/AAAAAAAAZ18/5XpMN7XinSU9oocqH5Ihho8dB7Av8PJ8QCLcBGAsYHQ/s640/smmalertslist.png)](https://1.bp.blogspot.com/-EIJ1P0y2OqE/XqTZ5DtFzuI/AAAAAAAAZ18/5XpMN7XinSU9oocqH5Ihho8dB7Av8PJ8QCLcBGAsYHQ/s1600/smmalertslist.png)

  

The **Brokers**  screen shows me totals for all the brokers and individual broker data.
  

[![](https://1.bp.blogspot.com/-YNYjEeu_KEw/XqTZ5lJFQ7I/AAAAAAAAZ2A/hOHbaQeKvV4zteAhOhPmCux1sltw3VcawCLcBGAsYHQ/s640/smmbrokers.png)](https://1.bp.blogspot.com/-YNYjEeu_KEw/XqTZ5lJFQ7I/AAAAAAAAZ2A/hOHbaQeKvV4zteAhOhPmCux1sltw3VcawCLcBGAsYHQ/s1600/smmbrokers.png)

  

I can browse inside a topic like this one for our **sensors**  data.   I can view the key, offset, timestamp and data.   I can view text, byte, json and AVRO formatted data.   There is also a connection to the schema it used from the Cloudera Schema Registry.
  

[![](https://1.bp.blogspot.com/-rW-5bhFHziM/XqTZ6DYTRUI/AAAAAAAAZ2E/Ysg9yD2SIdUjWO6XGlUeQe2KpC6b4coXgCLcBGAsYHQ/s640/smmtopicssensors.png)](https://1.bp.blogspot.com/-rW-5bhFHziM/XqTZ6DYTRUI/AAAAAAAAZ2E/Ysg9yD2SIdUjWO6XGlUeQe2KpC6b4coXgCLcBGAsYHQ/s1600/smmtopicssensors.png)

  

  

Below is an example email sent via Cloudera SMM for an alert condition on Kafka.

  

[![](https://1.bp.blogspot.com/-LJaWTs0vVDk/XqTZ3gY9Z3I/AAAAAAAAZ1w/tD8R2sjeLIskQ9Ul2St_Y4GACN92mC1ogCLcBGAsYHQ/s640/smmalert.png)](https://1.bp.blogspot.com/-LJaWTs0vVDk/XqTZ3gY9Z3I/AAAAAAAAZ1w/tD8R2sjeLIskQ9Ul2St_Y4GACN92mC1ogCLcBGAsYHQ/s1600/smmalert.png)
  

Before we can query the ORC files that we have stored in HDFS, we'll need to create an external Hive table.

  

[![](https://1.bp.blogspot.com/-QroA3fC6LHU/XqTZdWd7a_I/AAAAAAAAZx0/Hurlxe8AMlcdTD7oijv6q-o-AoxOnPIwwCLcBGAsYHQ/s640/createsensorshivetablexternal.png)](https://1.bp.blogspot.com/-QroA3fC6LHU/XqTZdWd7a_I/AAAAAAAAZx0/Hurlxe8AMlcdTD7oijv6q-o-AoxOnPIwwCLcBGAsYHQ/s1600/createsensorshivetablexternal.png)

  

We can use Apache Hue or Data Analytics Studio to query our new table.
  

[![](https://1.bp.blogspot.com/-gVO3wkSNUoU/XqTZeJGTmjI/AAAAAAAAZx8/ovy5K5-DyasYeRwbdWQ7KdhGaNOFUPtigCLcBGAsYHQ/s640/dasSensors.png)](https://1.bp.blogspot.com/-gVO3wkSNUoU/XqTZeJGTmjI/AAAAAAAAZx8/ovy5K5-DyasYeRwbdWQ7KdhGaNOFUPtigCLcBGAsYHQ/s1600/dasSensors.png)
  

  

If you need to connect to a machine, you can SSH into an instance.  

  

[![](https://1.bp.blogspot.com/-c4Jjekq38Ho/XqTZ68j8BJI/AAAAAAAAZ2I/vtUrLw21hvcvPkd-MTi31S93aIhe0qtFwCLcBGAsYHQ/s640/sshIntoDatahub.png)](https://1.bp.blogspot.com/-c4Jjekq38Ho/XqTZ68j8BJI/AAAAAAAAZ2I/vtUrLw21hvcvPkd-MTi31S93aIhe0qtFwCLcBGAsYHQ/s1600/sshIntoDatahub.png)
  

If you need more information, join us in the [Cloud](https://www.cloudera.com/products/discover-cloudera-data-platform.html), in the [Community](https://community.cloudera.com/) or up close in virtual [Meetups](https://www.meetup.com/futureofdata-princeton/).

  

## Additional Resources

- [https://www.cloudera.com/about/events/webinars/cdp-datahub-kafka.html](https://www.cloudera.com/about/events/webinars/cdp-datahub-kafka.html)
- 
- [https://github.com/tspannhw/ClouderaNow2020](https://github.com/tspannhw/ClouderaNow2020)
- [https://github.com/tspannhw/airline-sentiment-streaming](https://github.com/tspannhw/airline-sentiment-streaming)
- [https://github.com/tspannhw/table-ddl](https://github.com/tspannhw/table-ddl)