I'm running batch jobs on a RHEL5 lustre filesystem. Many jobs (13k) read the same text file, which is used to direct each job to a different dataset. The code looks like this:
with open('dataset-paths.txt') as txt_file:
dataset_location = txt_file.readlines()[job_number].strip()
But for some fraction of my jobs, I get
IOError: [Errno 2] No such file or directory: 'dataset-paths.txt'
Is it not possible to open the same text file from multiple processes at the same time? What else could cause this?