5. Test Data
Generate Data for Testing
- Return to the terminal connected to your EC2 Instance.
- Run the following command to navigate to the directory containing the data generation script:
cd /home/ec2-user/project/ec2
- Run the following command to generate data:
python data-generator.py
- After running for a while (about 5 minutes), press
Ctrl + C
to stop. You should see output data in the terminal as shown below.
- You may observe the following:
- “Order data insert successfully” indicates that order data has been pushed to RDS.
- The remaining output shows customer interaction data being pushed to the Kinesis stream, with events such as page_view, add_to_cart, and product_view.