sort: MISSING NEWLINE & sort: insufficient memory
Job that runs every Friday had failed the last two weeks and can reproduce from command line but cannot produce with same file on another server.
> du -sh 20140315_iwfs_b_group_attributes.dat
482M 20140315_iwfs_b_group_attributes.dat
> sort -u 20140315_iwfs_b_group_attributes.dat > sorted/20140315_iwfs_b_group_attributes.dat
sort: missing NEWLINE added at end of input file 20140315_iwfs_b_group_attributes.dat
sort: insufficient memory; use -S option to increase allocation
Even after explicitly setting -S option in sort command, it failed due to insufficient memory.
Notes:
server has enough physical memory and swap space to run the sort command, but still it failed 2 weeks. This job has been failing since the server was rebooted on 03/04