CCA 175 :Submitting spark and scala

In CCA 175, we are given python or scala files and we edit the file to write the necessary statements to get the output.
I am assuming The desired output is already formatted in the file itself. please let me know if this is incorrect
I want to know if saveAsTextFile has to be used in the py or scala script to redirect the output to the hdfs location
Please let me now if my question is not clear to you but help me with this doubt

yes , all your assumptions are correct.

but then i was getting an error path doesnt exist when i followed the same as i stated

can you post your entire code snippet , because that should work.

hey i dont have snippet right now but i guess i was able to fix it… thanks a lot!

Hi, Iam getting the same error…can you help me with this.thank you.