[ 
https://issues.apache.org/jira/browse/METRON-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16197541#comment-16197541
 ] 

ASF GitHub Bot commented on METRON-1230:
----------------------------------------

Github user cestella commented on a diff in the pull request:

    https://github.com/apache/metron/pull/785#discussion_r143553954
  
    --- Diff: 
metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/topology/ParserTopologyCLI.java
 ---
    @@ -285,7 +285,14 @@ public static Options getOptions() {
       }
     
       private static CommandLine parse(Options options, String[] args) {
    -    CommandLineParser parser = new PosixParser();
    +    CommandLineParser parser = new PosixParser() {
    +      @Override
    +      protected void processOption(String arg, ListIterator iter) throws 
ParseException {
    --- End diff --
    
    Ah, yes, so this does bear a comment. Not sure if it requires a code 
comment or not, but the general gist is that in order to pass args to `storm 
jar` (in this case storm configs to override the transformation class), we have 
to disregard options that we don't know about in the CLI.  Storm will ignore 
our args, we have to do the same.  Do you think that should be a code comment?


> As a stopgap prior to METRON-777, add more simplistic sideloading of custom 
> Parsers
> -----------------------------------------------------------------------------------
>
>                 Key: METRON-1230
>                 URL: https://issues.apache.org/jira/browse/METRON-1230
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Casey Stella
>
> Until we get 777 in, it'd be nice to have a simple ability using the normal 
> storm functionality to enable users to provide custom parsers without forking 
> Metron.  This should be done via simply creating a jar with their code (and 
> bundled dependencies) and have it picked up and available to the REST Service 
> (and consequently the management UI) as well as the start_parser_topology.sh 
> command.
> This should be minimal movement as we have a more robust solution coming with 
> METRON-777.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to