How to add new content to a record using Spark
|Added at||2017-01-01 15:01|
I have a text file containing several records like:
I want to add a string (ex. "record:") in front of each record, so each of them will be like:
I have the code that reads this text file and creates a RDD for this file:
How do I add the string to each record in this RDD using Spark? Many Thanks.