[
https://issues.apache.org/jira/browse/HIVE-21866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948289#comment-16948289
]
Sean Roberts commented on HIVE-21866:
-------------------------------------
Workaround for anyone that hits this and doesn't have the fixed version of Hive:
```
hdfs dfs -rm /user/hive/.yarn/services/llap0/llap0.json
```
> LLAP status service driver may get stuck with wrong Yarn app ID
> ---------------------------------------------------------------
>
> Key: HIVE-21866
> URL: https://issues.apache.org/jira/browse/HIVE-21866
> Project: Hive
> Issue Type: Bug
> Reporter: Ádám Szita
> Assignee: Ádám Szita
> Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-21866.0.patch
>
>
> LLAPStatusDriver might get stuck polling status from Yarn if the following
> happen in this order:
> * there was a running LLAP Yarn app previously which is now finished / killed
> * Yarn was restarted
> * LLAPStatusDriver is invoked before any new LLAP app gets kicked off
> * LLAPStatusDriver receives the old app ID, which is then cached in the Yarn
> serviceClient object (no evicition)
> * In the meantime if any new LLAP app gets kicked off, LLAPStatusDriver will
> not see it, as it constantly retries fetching info about the wrong, old app
> ID (this is because we don't create new serviceClient objects)
> {code:java}
> ERROR status.LlapStatusServiceDriver: FAILED: 20: Failed to get Yarn AppReport
> org.apache.hadoop.hive.llap.cli.status.LlapStatusCliException: 20: Failed to
> get Yarn AppReport
> at
> org.apache.hadoop.hive.llap.cli.status.LlapStatusServiceDriver.getAppReport(LlapStatusServiceDriver.java:292)
> [hive-llap-server-3.1.0.7.0.0.0-112.jar:3.1.0.7.0.0.0-134]
> at
> org.apache.hadoop.hive.llap.cli.status.LlapStatusServiceDriver.run(LlapStatusServiceDriver.java:209)
> [hive-llap-server-3.1.0.7.0.0.0-112.jar:3.1.0.7.0.0.0-134]
> at
> org.apache.hadoop.hive.llap.cli.status.LlapStatusServiceDriver.main(LlapStatusServiceDriver.java:537)
> [hive-llap-server-3.1.0.7.0.0.0-112.jar:3.1.0.7.0.0.0-134]....{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)