[ 
https://issues.apache.org/jira/browse/HADOOP-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577712#action_12577712
 ] 

yhemanth edited comment on HADOOP-3004 at 3/11/08 10:24 PM:
--------------------------------------------------------------------

I see the issue. Basically hod isn't doing anything special to normalize paths. 
It relies on the shell to do it. When we specify an option as 
{noformat}--hod.clusterdir=~/clusterdir{noformat} the shell is not expanding 
it, while it is, when we specify it as {noformat}--hod.clusterdir 
~/clusterdir{noformat}. And this not just with hod. Try the same with standard 
linux commands like tar, cp etc. For e.g. {noformat}cp 
--target-directory=~/abc{noformat} doesn't work.

So, closing this as not a bug.

      was (Author: yhemanth):
    I see the issue. Basically hod isn't doing anything with respect to 
normalizing ~/clusterdir to /home/user/clusterdir. It relies on the shell to do 
it. When we specify an option as --hod.clusterdir=~/clusterdir, the shell is 
not expanding it, while it is, when we specify it as --hod.clusterdir 
~/clusterdir. And this not just with hod. Try the same with standard linux 
commands like tar, cp etc. For e.g. cp --target-directory=~/abc doesn't work 
while cp --target-directory ~/abc does.

So, closing this as not a bug.
  
> HOD allocate command does not accept '~'
> ----------------------------------------
>
>                 Key: HADOOP-3004
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3004
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: lohit vijayarenu
>
> hod allocate seems to throw error when I specify directory relative to my home
> [EMAIL PROTECTED] hod allocate --hod.clusterdir="~/clusterdir" 
> --hod.nodecount=5
> error: bin/hod failed to start.
> error: invalid 'clusterdir' specified in section hod (--hod.clusterdir): 
> ~/clusterdir
> error: 1 problem found.
> Check your command line options and/or your configuration file /hod/conf/hodrc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to