Example code to implement Logistic Regression with R running on Hadoop