Personalized and Distributed Data Analytics in Heterogeneous Environments