You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hemanth Yamijala (JIRA)" <ji...@apache.org> on 2008/04/02 07:05:25 UTC

[jira] Commented: (HADOOP-3151) Hod should have better error messages.

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

Hemanth Yamijala commented on HADOOP-3151:
------------------------------------------

bq. (2) when hod does not understand the command, it prints the whole help options message - which clobbers the screen and is confusing. It should give a meaningful message - and may say "type hod help for more info"

Just usage, and the suggested hod help message. Remove description. I think that would address this issue. Would it ?

For (1), it will require more work than just changing the message, though it appears just that at face value. Hod configuration options can come from either the command line or configuration file, the former overriding the latter. And though the user knows which he has specified (whether on command line or in the configuration file), unfortunately, the code doesn't know it that easily, and gives a generic message. 

Should we just remove all the lines above and give the option that had a problem, assuming the user would know ?

+1 on saying 'Directory not found'. That's what Unix says.

> Hod should have better error messages.
> --------------------------------------
>
>                 Key: HADOOP-3151
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3151
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hod
>            Reporter: Arkady Borkovsky
>
> (1)
> gsgw1037:/homes/arkady/CDSR> hod allocate -n 4 -d xx
> error: bin/hod failed to start.
> error: invalid 'clusterdir' specified in section hod (--hod.clusterdir): xx
> error: 1 problem found.
> Check your command line options and/or your configuration file /grid/0/kryptonite/hod/conf/hodrc
>    * Directory 'xx' does not exist - the message shuold say "Non-existing directory" (or "directory not found"), not "invalid"
>    * checking the configuration file will not help, the advice is confusing
>    * checking the command line options is the obvious thing to do -- the advise is unnecessary.
> (2) when hod does not understand the command, it prints the whole help options message -- which clobbers the screen and is confusing. It should give a meaningful message -- and may say "type hod help for more info"

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