You can't have a blank line, if that's what you mean, yes. That's not a valid record. A terminal newline is fine. But the error seems to be something else:
java.io.FileNotFoundException: File does not exist: /user/hadoop/temp/preparePreferenceMatrix/numUsers.bin