A Resource-Aware Streaming-based Framework for Big Data Analysis