simple code for applying k mean on a flie in HDFS in Spark