Skip to main content
QUICK REVIEW

[Paper Review] Real-time Text Analytics Pipeline Using Open-source Big Data Tools

Hassan Nazeer, Waheed Iqbal|arXiv (Cornell University)|Dec 12, 2017
Cloud Computing and Resource ManagementComputer Science16 references6 citations
TL;DR

This paper proposes a real-time text analytics pipeline using open-source big data tools—Apache Kafka for data ingestion, Apache Spark for in-memory stream processing, Apache Cassandra for persistent storage, and D3.js for visualization—achieving sub-minute latency (0.7 minutes) for processing 466,700 tweets in 10.7 minutes across three virtual machines, demonstrating near real-time performance with scalable throughput.

ABSTRACT

Real-time text processing systems are required in many domains to quickly identify patterns, trends, sentiments, and insights. Nowadays, social networks, e-commerce stores, blogs, scientific experiments, and server logs are main sources generating huge text data. However, to process huge text data in real time requires building a data processing pipeline. The main challenge in building such pipeline is to minimize latency to process high-throughput data. In this paper, we explain and evaluate our proposed real-time text processing pipeline using open-source big data tools which minimize the latency to process data streams. Our proposed data processing pipeline is based on Apache Kafka for data ingestion, Apache Spark for in-memory data processing, Apache Cassandra for storing processed results, and D3 JavaScript library for visualization. We evaluate the effectiveness of the proposed pipeline under varying deployment scenarios to perform sentiment analysis using Twitter dataset. Our experimental evaluations show less than a minute latency to process $466,700$ Tweets in $10.7$ minutes when three virtual machines allocated to the proposed pipeline.

Motivation & Objective

  • To design and evaluate a low-latency, scalable real-time text analytics pipeline for high-velocity data streams.
  • To address the challenge of minimizing processing latency in big data systems handling large-scale text data from sources like social media.
  • To demonstrate the effectiveness of open-source tools in building a complete, end-to-end real-time processing pipeline for sentiment analysis.
  • To evaluate system performance under varying cluster configurations and resource allocations.

Proposed method

  • Utilized Apache Kafka as a distributed messaging system for high-throughput, low-latency data ingestion from Twitter's streaming API.
  • Employed Apache Spark Streaming with its in-memory processing engine to perform real-time sentiment classification on incoming tweet streams.
  • Integrated Apache Cassandra via third-party connectors to persist processed sentiment results for long-term analytics.
  • Developed a Node.js-based visualization component using the D3.js library to display real-time sentiment trends.
  • Deployed the pipeline on a private cloud using OpenNebula, scaling across one to three virtual machines to assess performance.
  • Generated consistent workloads using a Kafka producer to simulate Twitter data ingestion over 10-minute intervals.

Experimental results

Research questions

  • RQ1How does the latency of real-time text processing vary with increasing cluster size in a distributed big data pipeline?
  • RQ2What is the throughput and end-to-end processing latency of a sentiment analysis pipeline built with open-source tools on commodity hardware?
  • RQ3Can Apache Spark Streaming with in-memory processing achieve near real-time performance for large-scale tweet stream analysis?
  • RQ4How does resource allocation (number of VMs) affect the speedup and scalability of the pipeline?

Key findings

  • The pipeline achieved a latency of just 0.7 minutes (41 seconds) to process 466,700 tweets in 10.7 minutes when deployed across three virtual machines.
  • Processing time decreased from 15.0 minutes (Experiment 1) to 10.7 minutes (Experiment 3), representing a 140% speedup compared to the single-VM baseline.
  • System throughput increased with cluster size, processing 468,600 tweets in Experiment 2 and 466,700 in Experiment 3, demonstrating scalability.
  • The distributed deployment with three VMs reduced end-to-end delay to less than one minute, indicating near real-time processing capability.
  • Performance improved consistently with added resources, confirming the scalability of the pipeline architecture.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.