hpcugent / hanythingondemand

hanythingondemand provides a set of scripts to easily set up an ad-hoc Hadoop cluster through PBS jobs
https://hod.readthedocs.org
GNU General Public License v2.0
12 stars 6 forks source link

bug in 'hod clean' #114

Closed boegel closed 9 years ago

boegel commented 9 years ago
-bash-4.1$ hod clean
Note: No local workdir $VSC_SCRATCH/hod/hod/100975.master20.golett.gent.vsc found for cluster wordcount; job was deleted before it started running?
Removed cluster info directory /user/home/gent/vsc400/vsc40023/.config/hod.d/wordcount for cluster labeled wordcount

-bash-4.1$ ls $VSC_SCRATCH/hod/hod/100975.master20.golett.gent.vsc
vsc40023.node2583.golett.os.9796
boegel commented 9 years ago

The problem is probably that the workdir included $VSC_SCRATCH as a string, and that it doesn't get resolved to the actual path like bash would. Hmmm.

boegel commented 9 years ago

We should use https://docs.python.org/2/library/os.path.html#os.path.expandvars .

boegel commented 9 years ago

see #117