[
https://issues.apache.org/jira/browse/TEZ-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127200#comment-15127200
]
Jason Lowe commented on TEZ-3082:
---------------------------------
My preference would be to have the specific history service specify directly
which ACL service it wants, either via a member or static function of the class
or as you said some sort of factory that figures it out. Minimally that
requires passing configs to the method so anything conf-based can do what it
needs to do.
You mentioned that the logging apis need to be in tez-api, but the abstract
HistoryLoggingService is in tez-dag and simply extends AbstractService. Can't
we simply add a factory-like function to that abstract class that creates the
ACL service? Specific history logging services can override that to do the
right thing for them, and we can leave the current hardcoded behavior as the
default implementation in the abstract class.
> For non-framework history loggers, Tez should support a way to specify a
> custom policy manager
> ----------------------------------------------------------------------------------------------
>
> Key: TEZ-3082
> URL: https://issues.apache.org/jira/browse/TEZ-3082
> Project: Apache Tez
> Issue Type: Bug
> Reporter: Hitesh Shah
> Assignee: Hitesh Shah
> Attachments: TEZ-3082.1.wip.config-based.patch
>
>
> For framework supported policy managers, the rules of mapping history service
> to policy manager can be baked into code. For 3rd party impls, a simple
> config approach may suffice.
> Ideally querying the HistoryLoggingService class should also work but that
> requires ripping out AppContext ( AppContext is in tez-dag, the logging
> interfaces need to be in tez-api ). Another approach would be via
> serviceloaders/pluggable factories that given a conf/history logging class
> construct and return back a policy manager.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)