[ 
https://issues.apache.org/jira/browse/YARN-9247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281130#comment-17281130
 ] 

ZheYuan commented on YARN-9247:
-------------------------------

Thank this issue!!

Delete directory in configure file *yarn.nodemanager.local-dirs*.

EXAMPLE: In our system this directory is 
"/var/lib/hadoop-yarn/yarn-nm-recovery".

> NM fails to start when downgrading from 3.x to 2.7
> --------------------------------------------------
>
>                 Key: YARN-9247
>                 URL: https://issues.apache.org/jira/browse/YARN-9247
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 2.7.2
>            Reporter: Jiandan Yang 
>            Assignee: Jiandan Yang 
>            Priority: Major
>         Attachments: YARN-9247.branch-2.7.2.001.patch
>
>
> NM will throws *java.io.IOException: Unexpected container state key* when 
> downgrading from 3.1.3 to 2.7.2 duo to *starttime* added by hadoop3.x is not 
> known by old version.
> {code:java}
> 2019-01-28 12:12:05,227 FATAL 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting 
> NodeManager
> org.apache.hadoop.service.ServiceStateException: java.io.IOException: 
> Unexpected container state key: 
> ContainerManager/containers/container_e42_1548641704310_0002_01_000001/starttime
>         at 
> org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59)
>         at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:172)
>         at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
>         at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:263)
>         at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>         at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:536)
>         at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:584)
> Caused by: java.io.IOException: Unexpected container state key: 
> ContainerManager/containers/container_e42_1548641704310_0002_01_000001/starttime
>         at 
> org.apache.hadoop.yarn.server.nodemanager.recovery.NMLeveldbStateStoreService.loadContainerState(NMLeveldbStateStoreService.java:242)
>         at 
> org.apache.hadoop.yarn.server.nodemanager.recovery.NMLeveldbStateStoreService.loadContainersState(NMLeveldbStateStoreService.java:178)
>         at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.recover(ContainerManagerImpl.java:290)
>         at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:274)
>         at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>         ... 5 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to