- Practical Real-time Data Processing and Analytics
- Shilpi Saxena Saurabh Gupta
- 218字
- 2021-07-08 10:23:14
Do it yourself
In this section, we will provide the problem for the reader so that they can create their own application after reading the previous content.
Here, we will extend the example given previous regarding the setup and configuration of NiFi. The problem statement is read from a real-time log file and put into Cassandra. The pseudo code is as follows:
- Tail log file
- Put events into Kafka topic
- Read events from Kafka topic
- Filter events
- Push event into Cassandra
You have to install Cassandra and configure it so that NiFi will be able to connect it.
Logstash is made to process the logs and throw them to other tools for storage or visualization. The best fit here is Elastic Search, Logstash and Kibana (ELK). As per the scope of this chapter, we will build integration between Elastic Search and Logstash and, in the next chapters, we will integrate Elastic Search with Kibana for complete workflow. So all you need to do to build ELK is:
- Create a program to read from PubNub for real-time sensor data. The same program will publish events to the Kafka topic
- Install Elasticsearch on the local machine and start
- Now, write a Logstash configuration which reads from a Kafka topic, parse and format them and push them into the Elasticsearch engine
- Python快樂編程:人工智能深度學習基礎
- 自制編譯器
- Docker進階與實戰
- Django:Web Development with Python
- Python 3網絡爬蟲實戰
- Mastering Python Networking
- C++從入門到精通(第5版)
- AutoCAD 2009實訓指導
- 運維前線:一線運維專家的運維方法、技巧與實踐
- C++ Fundamentals
- Building Slack Bots
- Go語言入門經典
- Python硬件編程實戰
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Flink入門與實戰