You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by DadanielZ <gi...@git.apache.org> on 2016/08/29 21:27:33 UTC
[GitHub] incubator-eagle pull request #402: Eagle-447 convert eagle-maprfs app to use...
GitHub user DadanielZ opened a pull request:
https://github.com/apache/incubator-eagle/pull/402
Eagle-447 convert eagle-maprfs app to use new app framework
eagle-maprfs app should use new app framework to manage its lifecycle
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DadanielZ/incubator-eagle EAGLE-447
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-eagle/pull/402.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #402
----
commit b1bfbc211d41eecff826fa335a902a91ce1a2915
Author: DadanielZ <da...@apache.org>
Date: 2016-08-29T21:12:27Z
Eagle-447 convert eagle-maprfs app to use new app framework
eagle-maprfs app should use new app framework to manage its lifecycle
----
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by DadanielZ <gi...@git.apache.org>.
Github user DadanielZ commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
@yonzhang Their code are almost the same except that: "AbstractHdfsAuditLogApplication" use "HdfsAuditLogParserBolt", "AbstractMapRFSAuditLogApplication" should use "MapRFSAuditLogParserBolt".
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by haoch <gi...@git.apache.org>.
Github user haoch commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
Pls. refer to :
* Metadata descriptor and SPI: https://github.com/apache/incubator-eagle/tree/develop/eagle-security/eagle-security-hdfs-auditlog/src/main/resources/META-INF
* ApplicationProvider: https://github.com/apache/incubator-eagle/blob/develop/eagle-security/eagle-security-hdfs-auditlog/src/main/java/org/apache/eagle/security/auditlog/HdfsAuditLogAppProvider.java
* Better to have Unit Test to make sure all set: https://github.com/apache/incubator-eagle/blob/develop/eagle-jpm/eagle-jpm-spark-running/src/test/java/SparkRunningJobAppProviderTest.java#L30
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle pull request #402: Eagle-447 convert eagle-maprfs app to use...
Posted by DadanielZ <gi...@git.apache.org>.
Github user DadanielZ closed the pull request at:
https://github.com/apache/incubator-eagle/pull/402
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by DadanielZ <gi...@git.apache.org>.
Github user DadanielZ commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
@yonzhang, I see now. In \u201c AbstractHdfsAuditLogApplication.java\u201d, 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by DadanielZ <gi...@git.apache.org>.
Github user DadanielZ commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
@haoch thanks for the review, will add them later.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by haoch <gi...@git.apache.org>.
Github user haoch commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
ApplicationProvider and XML metadata descriptor is missing.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle pull request #402: Eagle-447 convert eagle-maprfs app to use...
Posted by DadanielZ <gi...@git.apache.org>.
GitHub user DadanielZ reopened a pull request:
https://github.com/apache/incubator-eagle/pull/402
Eagle-447 convert eagle-maprfs app to use new app framework
eagle-maprfs app should use new app framework to manage its lifecycle
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DadanielZ/incubator-eagle EAGLE-447
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-eagle/pull/402.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #402
----
commit b1bfbc211d41eecff826fa335a902a91ce1a2915
Author: DadanielZ <da...@apache.org>
Date: 2016-08-29T21:12:27Z
Eagle-447 convert eagle-maprfs app to use new app framework
eagle-maprfs app should use new app framework to manage its lifecycle
----
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle pull request #402: Eagle-447 convert eagle-maprfs app to use...
Posted by DadanielZ <gi...@git.apache.org>.
Github user DadanielZ closed the pull request at:
https://github.com/apache/incubator-eagle/pull/402
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by yonzhang <gi...@git.apache.org>.
Github user yonzhang commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
@DadanielZ that is why there is already AbstractHdfsAuditLogApplication there, and MapRApplication can extend this and implement getParserBolt method
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-eagle issue #402: Eagle-447 convert eagle-maprfs app to use new ap...
Posted by yonzhang <gi...@git.apache.org>.
Github user yonzhang commented on the issue:
https://github.com/apache/incubator-eagle/pull/402
Thanks for the improvement. Why we create a new AbstractMapRFSAuditLogApplication, can't we use AbstractHdfsAuditLogApplication? They share the same code
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---