[
https://issues.apache.org/jira/browse/MAPREDUCE-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753085#comment-13753085
]
Siddharth Seth commented on MAPREDUCE-5329:
-------------------------------------------
bq. The only thing that may relate shuffleToken to a specific aux-service is an
existing biased in the current code. The code for serializing/deserializing
shuffleToken is located in 2 static methods in the AuxiliaryService class
ShuffleHandler. However, I think there is no real justification for that and it
is very easy to move these 2 simple methods to a more appropriate place like
the Token class itself.
In terms of the application - MR AM, ReduceTask etc - the shuffle token can be
shared. In terms of YARN - each auxiliary servive that an app needs to know
will only receive this bit of information if it is specified for that Aux
service.
The MR AM is pretty tightly tied to it's current shuffle service. The AM itself
is aware of the existing shuffle service, the fact that it uses ports, and how
to construct URLs for the existing Shuffle consumer to use.
I'm assuming you're planning to write a different auxiliary service running in
the NodeManager as your alternate shuffle provider ? Does this need any node
specific configuration. How will the consumers find out when and where to fetch
data from ? The new ShuffleConsumer can fetch completion events from the AM -
which will have a URL constructed based on the existing ShuffleProvider. Is
this information sufficient for your consumer to fetch the data ?
If it is, to get your provider initialized by the NM (i.e. the APPLICATION_INIT
event), you'll need to modify the {serviceData} in the startContainer call.
That is a map containing the serviceId for the auxiliary service and data that
it needs for initialization. In case of the current ShuffleProvider - this is
ShuffleHandler.MAPREDUCE_SHUFFLE_SERVICEID and the token. You just need to add
another entry to this map for your own Provider. If it's using the same token,
send that as the payload.
If not, the changes are likely to be more extensive.
bq. The purpose of the suggested new MAPREDUCE issue is one step further - for
configuring multiple aux-services with service-port, regardless of
shuffle-providers and regardless of APPLICATION_INIT. Beside, the new issue is
blocked on YARN-1065.
I'm not sure I understand your use case - and how this is separate, but if you
think it's independent you should just create a jira with details.
> APPLICATION_INIT is never sent to AuxServices other than the builtin
> ShuffleHandler
> -----------------------------------------------------------------------------------
>
> Key: MAPREDUCE-5329
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5329
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mr-am
> Affects Versions: 2.0.4-alpha
> Reporter: Avner BenHanoch
>
> APPLICATION_INIT is never sent to AuxServices other than the built-in
> ShuffleHandler. This means that 3rd party ShuffleProvider(s) will not be
> able to function, because APPLICATION_INIT enables the AuxiliaryService to
> map jobId->userId. This is needed for properly finding the MOFs of a job per
> reducers' requests.
> NOTE: The built-in ShuffleHandler does get APPLICATION_INIT events due to
> hard-coded expression in hadoop code. The current TaskAttemptImpl.java code
> explicitly call: serviceData.put (ShuffleHandler.MAPREDUCE_SHUFFLE_SERVICEID,
> ...) and ignores any additional AuxiliaryService. As a result, only the
> built-in ShuffleHandler will get APPLICATION_INIT events. Any 3rd party
> AuxillaryService will never get APPLICATION_INIT events.
> I think a solution can be in one of two ways:
> 1. Change TaskAttemptImpl.java to loop on all Auxiliary Services and register
> each of them, by calling serviceData.put (…) in loop.
> 2. Change AuxServices.java similar to the fix in: MAPREDUCE-2668
> "APPLICATION_STOP is never sent to AuxServices". This means that in case the
> 'handle' method gets APPLICATION_INIT event it will demultiplex it to all Aux
> Services regardless of the value in event.getServiceID().
> I prefer the 2nd solution. I am welcoming any ideas. I can provide the
> needed patch for any option that people like.
> See [Pluggable Shuffle in Hadoop
> documentation|http://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/PluggableShuffleAndPluggableSort.html]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira