You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2013/05/21 20:51:16 UTC
[jira] [Commented] (YARN-710) Add to ser/deser methods to
RecordFactory
[ https://issues.apache.org/jira/browse/YARN-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13663247#comment-13663247 ]
Alejandro Abdelnur commented on YARN-710:
-----------------------------------------
Per discussion in the yarn-dev@, http://mail-archives.apache.org/mod_mbox/hadoop-yarn-dev/201305.mbox/browser , as per Bobby suggestion, a simple way to do this would be something along the following lines:
{code}
public interface RecordFactory {
public <T> T newRecordInstance(Class<T> clazz) throws YarnException;
public <T> T newRecordInstance(Class<T> clazz, byte[] data) throws
YarnException;
public <T> byte[] fromRecordInstance(T t) throws YarnException;
}
{code}
> Add to ser/deser methods to RecordFactory
> -----------------------------------------
>
> Key: YARN-710
> URL: https://issues.apache.org/jira/browse/YARN-710
> Project: Hadoop YARN
> Issue Type: Bug
> Components: api
> Affects Versions: 2.0.4-alpha
> Reporter: Alejandro Abdelnur
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.5-beta
>
>
> I order to do things like AMs failover and checkpointing I need to serialize app IDs, app attempt IDs, containers and/or IDs, resource requests, etc.
> Because we are wrapping/hiding the PB implementation from the APIs, we are hiding the built in PB ser/deser capabilities.
--
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