hod list command throws python exception, when clusters.state file contains
some directory path which actually does not exist
------------------------------------------------------------------------------------------------------------------------------
Key: HADOOP-2794
URL: https://issues.apache.org/jira/browse/HADOOP-2794
Project: Hadoop Core
Issue Type: Bug
Components: contrib/hod
Reporter: Karam Singh
Priority: Minor
Fix For: 0.16.0
hod list command throws following python exception when clusters.state file
contains some directory path which actually
does not exits -:
CRITICAL/50 hod:340 - op: list failed: <type 'exceptions.OSError'> [Errno 2] No
such file or directory: '[Path to non-exstent directory'
Following are the steps to repro -:
1. Create directory tree cdir/clusterDir say at $HOME dir.
2. Run hod allocate as -: hod -c <confPath> -b 4 -o "allocate ~/cdir/clusterDir
5"
3. rename cdir to cdir1.
4. Run hod list as -: hod -o list
hod will list the allocated directories up to the the point it encounters
non-existant path entry in ~/.hod/clusters.state file afer that hod will throw
python exception and will stop
Note -:
There is more issue. if cdir exists but not clusrterDir. Then hod will create
clusterDir (a new empty directory)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.