You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Will McQueen (Created) (JIRA)" <ji...@apache.org> on 2012/02/28 00:45:48 UTC

[jira] [Created] (FLUME-1005) Several issues with flume-ng script

Several issues with flume-ng script
-----------------------------------

                 Key: FLUME-1005
                 URL: https://issues.apache.org/jira/browse/FLUME-1005
             Project: Flume
          Issue Type: Bug
         Environment: RHEL 6.2 64-bit
            Reporter: Will McQueen


The changes in the script are described below:

1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG

2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.

3) spelling: " !" => "!"

4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries

5) Remove all cases of using "--no-env,-E". This is not implemented.

6) Remove all cases of using "--data,-d". This is not implemented.

7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"

8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".

9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.

10) Remove validate_env(), since --no-env,-E isn't implemented


--
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-1005) Several issues with flume-ng script

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

Hudson commented on FLUME-1005:
-------------------------------

Integrated in flume-728 #116 (See [https://builds.apache.org/job/flume-728/116/])
    FLUME-1005. Fixing issues with flume-ng script

(Will McQueen via Arvind Prabhakar) (Revision 1294435)

     Result = FAILURE
arvind : http://svn.apache.org/viewvc/?view=rev&rev=1294435
Files : 
* /incubator/flume/branches/flume-728/bin/flume-ng

                
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>            Assignee: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

Arvind Prabhakar reassigned FLUME-1005:
---------------------------------------

    Assignee: Will McQueen
    
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>            Assignee: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

Will McQueen updated FLUME-1005:
--------------------------------

    Attachment: FLUME-1005.patch
    
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

Will McQueen updated FLUME-1005:
--------------------------------

        Fix Version/s: v1.1.0
    Affects Version/s: v1.1.0
               Status: Patch Available  (was: Open)

This patch addresses all the concerns listed in the description
                
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

Arvind Prabhakar updated FLUME-1005:
------------------------------------

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

Patch committed to branch flume-728. Thanks Will!
                
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

jiraposter@reviews.apache.org commented on FLUME-1005:
------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4076/
-----------------------------------------------------------

Review request for Flume.


Summary
-------

The changes in the script are described below:

1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG

2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.

3) spelling: " !" => "!"

4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries

5) Remove all cases of using "--no-env,-E". This is not implemented.

6) Remove all cases of using "--data,-d". This is not implemented.

7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"

8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".

9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.

10) Remove validate_env(), since --no-env,-E isn't implemented 


This addresses bug FLUME-1005.
    https://issues.apache.org/jira/browse/FLUME-1005


Diffs
-----

  bin/flume-ng 4670d92 

Diff: https://reviews.apache.org/r/4076/diff


Testing
-------

Running script


Thanks,

Will


                
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

jiraposter@reviews.apache.org commented on FLUME-1005:
------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4076/#review5376
-----------------------------------------------------------

Ship it!


+1

- Arvind


On 2012-02-28 01:09:05, Will McQueen wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4076/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-02-28 01:09:05)
bq.  
bq.  
bq.  Review request for Flume.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  The changes in the script are described below:
bq.  
bq.  1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
bq.  
bq.  2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
bq.  
bq.  3) spelling: " !" => "!"
bq.  
bq.  4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
bq.  
bq.  5) Remove all cases of using "--no-env,-E". This is not implemented.
bq.  
bq.  6) Remove all cases of using "--data,-d". This is not implemented.
bq.  
bq.  7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
bq.  
bq.  8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
bq.  
bq.  9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
bq.  
bq.  10) Remove validate_env(), since --no-env,-E isn't implemented 
bq.  
bq.  
bq.  This addresses bug FLUME-1005.
bq.      https://issues.apache.org/jira/browse/FLUME-1005
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    bin/flume-ng 4670d92 
bq.  
bq.  Diff: https://reviews.apache.org/r/4076/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  Running script
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Will
bq.  
bq.


                
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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-1005) Several issues with flume-ng script

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

Arvind Prabhakar commented on FLUME-1005:
-----------------------------------------

@Will - please submit a code review request using reviews.apache.org.
                
> Several issues with flume-ng script
> -----------------------------------
>
>                 Key: FLUME-1005
>                 URL: https://issues.apache.org/jira/browse/FLUME-1005
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: RHEL 6.2 64-bit
>            Reporter: Will McQueen
>             Fix For: v1.1.0
>
>         Attachments: FLUME-1005.patch
>
>
> The changes in the script are described below:
> 1) Move FLUME_NODE_CLASS and FLUME_AVRO_CLIENT_CLASS after the sourcing of flume-env.sh, since there's no reason that flume-env.sh should override these 2 classes that are fundamental to Flume NG
> 2) The check for existence of flume-env.sh should include a check of whether $FLUME_CONF_DIR is non-null. Otherwise there's a (very rare) chance that a flume-env.sh file will be picked-up from root dir at '/flume-env.sh' if FLUME_CONF_DIR isn't set.
> 3) spelling: " !" => "!"
> 4) Change display_help() to follow standard syntax of [COMMAND] [OPION]... seen in man pages. Modify some indentation, based on new help entries
> 5) Remove all cases of using "--no-env,-E". This is not implemented.
> 6) Remove all cases of using "--data,-d". This is not implemented.
> 7) In display_help(), add node options and a node-specific help option. These node options are what you would see in the help output if you ran the Application.java class directly with "java Application -h"
> 8) In display_help(), add avro-client options. These client options are what you would see in the help output if you ran "AvroCLIClient -h".
> 9) In run_node() and run_avro_client(), make FLUME_APPLICATION_CLASS local to emphasize that its value isn't used in the caller's env. Also, remove the check for JAVA_HOME since it's guaranteed that JAVA_HOME will have been set by the time this function is called. In run_avro_client(), remove the FLUME_CLASSPATH line since a similar check was already done earlier in the same function.
> 10) Remove validate_env(), since --no-env,-E isn't implemented

--
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