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

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

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

    https://github.com/apache/metron/pull/785#discussion_r143544318
  
    --- Diff: 
metron-interface/metron-rest/src/main/java/org/apache/metron/rest/service/impl/SensorParserConfigServiceImpl.java
 ---
    @@ -122,29 +123,15 @@ public boolean delete(String name) throws 
RestException {
     
       @Override
       public Map<String, String> getAvailableParsers() {
    -    if (availableParsers == null) {
    -      availableParsers = new HashMap<>();
    -      Set<Class<? extends MessageParser>> parserClasses = 
getParserClasses();
    -      parserClasses.forEach(parserClass -> {
    -        if (!"BasicParser".equals(parserClass.getSimpleName())) {
    -          
availableParsers.put(parserClass.getSimpleName().replaceAll("Basic|Parser", ""),
    -              parserClass.getName());
    -        }
    -      });
    -    }
    -    return availableParsers;
    +    return ParserIndex.INSTANCE.getIndex();
    --- End diff --
    
    Nice


> 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