sample code of using hadoop mapreduce for linear regression and forecasting