How to split sentence on first space in Apache Spark? : I am new to Apache Spark, I have a file, where every sentences which has first 10 characters as a key and rest is a value, how do I apply spark on it to extract the first 10 characters of each sentence as a key and rest as a data, so in the end I get a [key,value] pair Rdd as a output.
