Data is growing at an extremely fast rate. Because of this, more companies are making Big Data a key part of their business strategy to unlock valuable insights from their data. However, testing Big Data applications before launching them is still not well-defined. This can create problems and make the entire process risky and difficult. To solve this challenge, a clear and practical testing process was developed based on real experience from complex Big Data projects at Emergys.
The project is based on the Internet of Things (IoT) and was carried out for one of India’s largest telecom companies. The company was struggling to analyze huge amounts of streaming data coming from millions of mobile phone users on its network. Their goal was to use this analysis to help the marketing team make better decisions and deliver a much better experience to their customers.
Following is the high-level architecture of that Application
In architecture, a variety of independent processes existed. Therefore, it was essential to adopt a separate testing methodology for each process.
The processes were first categorized based on their behavior. The image below illustrates the resulting clusters.
Based on this categorization and sequence, a dedicated testing flow was created. The exact steps followed are outlined below.
Step 1: Data Staging Validation
When: Before data lands on Hadoop
Where: Local File System
How:
- Compare the number of files – We used shell scripts to compare the count of files in source and destination folders using timestamps. The timestamp can be extracted from filenames as files were named after creation time.
- Validating the number of records – We used shell scripts to validate the number of records before and after processing.
- Identify outdated data – We used shell scripts to check if any outdated data comes from sources. This can happen when the user has switched off his internet connection for some time, and once he switches on the internet, it will start sending previously generated data to the data server. In such scenarios, we identify and move such files out of the current process, so they don’t unnecessarily consume processing time and space.
Step 2: Data Processing Validation
When: After processing or aggregating data stored in Hadoop
Where: HBase/HDFS
How:
- I fetched a few samples from aggregated data stored in an aggregated table using a hive query and compared them with raw data stored in the raw data table.
- I had written a shell script that counts a number of records in source files for a certain period with data stored in HBase using a hive query written in the same shell script.
- There was a step where we chopped CSV files for the location network vertically based on the row key, as flume can take only 30 columns at a time, whereas we had more than 55. This makes data testing crucial as it is not only about horizontal data testing but about vertical, too. I wrote a hive script that periodically checks before every aggregation that there are no NULL columns in HBase.
Step 3: Reports Validation
- Data Validation: I used to test data in the PHP-based report for different combinations of time. The crux of the data testing here is that if I don’t find data on the report for a specific period, I would have to reverse engineer the whole process until I see at which stage the data was missed. The data can be ignored when Impala fetches data for a report, during hive aggregation, while flume loads data, or when data pre-processing is done using scripting. This is strictly manual and requires access to the whole system and patience.
Though this solved the problem, there are some challenges while testing big data-based applications.
Conclusion
In conclusion, implementing a structured, multi-layered testing methodology is essential for mitigating risks in complex Big Data and IoT applications. By categorizing processes and applying targeted validation techniques using scripts, companies can ensure data accuracy, completeness, and timeliness even at a massive scale.
Ready to build robust, high-performance Big Data solutions with confidence? Partner with Emergys to leverage our proven testing methodologies and deep domain expertise for your IoT, analytics, and digital transformation projects. Contact us today to accelerate your Big Data journey!




