You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2012/11/01 16:37:12 UTC

[jira] [Created] (HDFS-4134) hadoop namenode & namenode entry points should return -1 exit code on bad arguments

Steve Loughran created HDFS-4134:
------------------------------------

             Summary: hadoop namenode & namenode entry points should return -1 exit code on bad arguments
                 Key: HDFS-4134
                 URL: https://issues.apache.org/jira/browse/HDFS-4134
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: name-node
    Affects Versions: 1.0.4
            Reporter: Steve Loughran
            Priority: Minor


When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 

This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-4134) hadoop namenode & datanode entry points should return negative exit code on bad arguments

Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Foley updated HDFS-4134:
-----------------------------

    Fix Version/s:     (was: 1.2.0)
    
> hadoop namenode & datanode entry points should return negative exit code on bad arguments
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>             Fix For: 1.1.1
>
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-4134) hadoop namenode & datanode entry points should return negative exit code on bad arguments

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HDFS-4134:
----------------------------------

          Resolution: Fixed
       Fix Version/s: 1.2.0
                      1.1.1
    Target Version/s: 1.1.1
        Hadoop Flags: Reviewed
              Status: Resolved  (was: Patch Available)

I committed the patch to branch-1 and branch-1.1. Thank you Steve.
                
> hadoop namenode & datanode entry points should return negative exit code on bad arguments
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>             Fix For: 1.1.1, 1.2.0
>
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-4134) hadoop namenode & datanode entry points should return negative exit code on bad arguments

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HDFS-4134:
----------------------------------

    Summary: hadoop namenode & datanode entry points should return negative exit code on bad arguments  (was: hadoop namenode & datanode entry points should return -1 exit code on bad arguments)
    
> hadoop namenode & datanode entry points should return negative exit code on bad arguments
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-4134) hadoop namenode & namenode entry points should return -1 exit code on bad arguments

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489314#comment-13489314 ] 

Steve Loughran commented on HDFS-4134:
--------------------------------------

Actually I now advocate a -2 error code for usage issues -independent of any other error message. 

why? Stops you having to grab the output and do a regexp search to verify that the error code is a usage message from the inner java code, not some failure of java or the shell script to get that far: {{if [[ ${usage} =~ *Usage* ]];}}
                
> hadoop namenode & namenode entry points should return -1 exit code on bad arguments
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-4134) hadoop namenode & datanode entry points should return -1 exit code on bad arguments

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HDFS-4134:
----------------------------------

    Summary: hadoop namenode & datanode entry points should return -1 exit code on bad arguments  (was: hadoop namenode & namenode entry points should return -1 exit code on bad arguments)
    
> hadoop namenode & datanode entry points should return -1 exit code on bad arguments
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-4134) hadoop namenode & namenode entry points should return -1 exit code on bad arguments

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493515#comment-13493515 ] 

Suresh Srinivas commented on HDFS-4134:
---------------------------------------

+1 for the patch.
                
> hadoop namenode & namenode entry points should return -1 exit code on bad arguments
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-4134) hadoop namenode & namenode entry points should return -1 exit code on bad arguments

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489377#comment-13489377 ] 

Hadoop QA commented on HDFS-4134:
---------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12551850/HDFS-4134.patch
  against trunk revision .

    {color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/3439//console

This message is automatically generated.
                
> hadoop namenode & namenode entry points should return -1 exit code on bad arguments
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-4134) hadoop namenode & namenode entry points should return -1 exit code on bad arguments

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Loughran updated HDFS-4134:
---------------------------------

    Attachment: HDFS-4134.patch

patch for branch-1 that returns -2 on a usage; 254 to a bash script that invokes it
                
> hadoop namenode & namenode entry points should return -1 exit code on bad arguments
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-4134) hadoop namenode & namenode entry points should return -1 exit code on bad arguments

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Loughran updated HDFS-4134:
---------------------------------

    Status: Patch Available  (was: Open)
    
> hadoop namenode & namenode entry points should return -1 exit code on bad arguments
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-4134
>                 URL: https://issues.apache.org/jira/browse/HDFS-4134
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1.0.4
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HDFS-4134.patch
>
>
> When you go  {{hadoop namenode start}} (or some other bad argument to the namenode), a usage message is generated -but the script returns 0. 
> This stops it being a robust command to invoke from other scripts -and is inconsistent with the JT & TT entry points, that do return -1 on a usage message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira