Hi experts,
How can I overwrite an existing file by a new one (data update). Imagine that I've this:
- result.map(pair => pair.swap).sortByKey(true).saveAsTextFile("FILE/results")
And Imagine that I want to do this:
- test.map(pair => pair.swap).sortByKey(false).saveAsTextFile("FILE/results")
How can I overwrite the results of the var result to the results of the val test in same directory?