You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Jarek Jarcec Cecho (Created) (JIRA)" <ji...@apache.org> on 2011/11/19 22:25:51 UTC

[jira] [Created] (FLUME-853) Running

Running 
--------

                 Key: FLUME-853
                 URL: https://issues.apache.org/jira/browse/FLUME-853
             Project: Flume
          Issue Type: Bug
          Components: Shell
    Affects Versions: NG alpha 1
            Reporter: Jarek Jarcec Cecho
            Priority: Trivial


Running flume-ng shell scripts without arguments will end up with following error message:

<21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
shift: 122: can't shift that many

Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-853) Running flume-ng without arguments will fail on non clear message

Posted by "Jarek Jarcec Cecho (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153737#comment-13153737 ] 

Jarek Jarcec Cecho commented on FLUME-853:
------------------------------------------

Works for me.

Jarcec
                
> Running flume-ng without arguments will fail on non clear message
> -----------------------------------------------------------------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-853) Running flume-ng without arguments will fail on non clear message

Posted by "Arvind Prabhakar (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197118#comment-13197118 ] 

Arvind Prabhakar commented on FLUME-853:
----------------------------------------

Hi Jarcec - are you going to be updating the patch to take Will's suggestion, or you feel the patch is ready for commit?

Thanks,
Arvind
                
> Running flume-ng without arguments will fail on non clear message
> -----------------------------------------------------------------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-853) Running

Posted by "Jarek Jarcec Cecho (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Jarcec Cecho updated FLUME-853:
-------------------------------------

    Attachment: FLUME-853.patch

Very simple patch that will show help text when no parameters were given on command line.
                
> Running 
> --------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-853) Running flume-ng without arguments will fail on non clear message

Posted by "Jarek Jarcec Cecho (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Jarcec Cecho updated FLUME-853:
-------------------------------------

    Resolution: Invalid
        Status: Resolved  (was: Patch Available)

There was massive clean up in bin/ folder and as a side effect script flume-ng was already fixed to require /bin/bash instead of /bin/sh. So I'm closing this issue as invalid.

Thanks for your question Arvind, I've forgot about this particular issue.

Jarcec
                
> Running flume-ng without arguments will fail on non clear message
> -----------------------------------------------------------------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-853) Running

Posted by "Will McQueen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153626#comment-13153626 ] 

Will McQueen commented on FLUME-853:
------------------------------------

The behavior of shift depends on the shell. In the flume-ng script, the interpreter directive after the shebang /bin/sh. On my box, /bin/sh links to /bin/bash, and so what I see when I run 'flume-ng' without any args an error saying that there was an unspecified command, followed by the entire usage info.
     Error: Unknown or unspecified command ''
     <usage info is dispayed here>


 Other scripts such as 'flume' and 'flume-daemon.sh' from Flume OG require bash, as indicated by their interpreter directive "/usr/bin/env /bin/bash".

So, as an even simpler fix, how about in the flume-ng script we change this:
     #!/bin/sh
...to this:
     #!/usr/bin/env /bin/bash
                
> Running 
> --------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-853) Running

Posted by "Jarek Jarcec Cecho (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Jarcec Cecho updated FLUME-853:
-------------------------------------

    Status: Patch Available  (was: Open)
    
> Running 
> --------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-853) Running flume-ng without arguments will fail on non clear message

Posted by "Jarek Jarcec Cecho (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Jarcec Cecho updated FLUME-853:
-------------------------------------

    Summary: Running flume-ng without arguments will fail on non clear message  (was: Running )
    
> Running flume-ng without arguments will fail on non clear message
> -----------------------------------------------------------------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (FLUME-853) Running flume-ng without arguments will fail on non clear message

Posted by "Arvind Prabhakar (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arvind Prabhakar reassigned FLUME-853:
--------------------------------------

    Assignee: Jarek Jarcec Cecho
    
> Running flume-ng without arguments will fail on non clear message
> -----------------------------------------------------------------
>
>                 Key: FLUME-853
>                 URL: https://issues.apache.org/jira/browse/FLUME-853
>             Project: Flume
>          Issue Type: Bug
>          Components: Shell
>    Affects Versions: NG alpha 1
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>            Priority: Trivial
>         Attachments: FLUME-853.patch
>
>
> Running flume-ng shell scripts without arguments will end up with following error message:
> <21:53:24> jarcec@nermal flume-728 $ ./bin/flume-ng
> shift: 122: can't shift that many
> Would be nice to display help message instead in case when no parameters are given on the command line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira