[
https://issues.apache.org/jira/browse/YARN-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14056933#comment-14056933
]
Jian He commented on YARN-2131:
-------------------------------
Sorry for the late, one other comment too..
- we should use multi operation here instead of invoking delete each time
{code}
for (String child : children) {
recursiveDeleteWithRetriesHelper(path + "/" + child, false);
}
zkClient.delete(path, -1);
{code}
Justing thinking if it make sense to have a separate class do the cleanup work
for state-store, the patch is done in a way by instantiating a new
ResourceManager, later on we may add more logic to this class for state store
upgrade/downgrade for rolling upgrades.
> Add a way to format the RMStateStore
> ------------------------------------
>
> Key: YARN-2131
> URL: https://issues.apache.org/jira/browse/YARN-2131
> Project: Hadoop YARN
> Issue Type: New Feature
> Components: resourcemanager
> Affects Versions: 2.4.0
> Reporter: Karthik Kambatla
> Assignee: Robert Kanter
> Fix For: 2.6.0
>
> Attachments: YARN-2131.patch, YARN-2131.patch
>
>
> There are cases when we don't want to recover past applications, but recover
> applications going forward. To do this, one has to clear the store. Today,
> there is no easy way to do this and users should understand how each store
> works.
--
This message was sent by Atlassian JIRA
(v6.2#6252)