hadoop is used for real time streaming code example
Example: hadoop streaming
hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/hadoop-streaming-2.6.0-cdh5.15.1.jar \
-file mapperage.py -mapper 'python mapperage.py' \
-file reduced_max.py -reducer 'python reduced_max.py' \
-input /user/ec2-user/CustomerAge.txt \
-output /user/ec2-user/output_1