Github user DadanielZ commented on the issue:

    https://github.com/apache/incubator-eagle/pull/402
  
    @yonzhang, I see now. In “ AbstractHdfsAuditLogApplication.java”, there 
is an overrided function which use "HdfsAuditLogParserBolt" directly:
    ```
    @Override
    public StormTopology execute(Config config, StormEnvironment environment){
    ...
    HdfsAuditLogParserBolt parserBolt = new HdfsAuditLogParserBolt();
    BoltDeclarer boltDeclarer = builder.setBolt("parserBolt", parserBolt, 
numOfParserTasks);
    ...
    }
    ```
    that's why I wrote "AbstractMapRFSAuditLogApplication" and call 
"MapRFSAuditLogParserBolt".
    
    I think I should refactor the code in "AbstractHdfsAuditLogApplication" and 
let it call "getParserBolt"  to get parserBolt, then extend this class for mapr 
application:
    ```
    @Override
    public StormTopology execute(Config config, StormEnvironment environment){
    ...
    BaseRichBolt parserBolt = getParserBolt();
    BoltDeclarer boltDeclarer = builder.setBolt("parserBolt", parserBolt, 
numOfParserTasks);
    ...
    }
    ```
    Will fix it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to