首页 > 解决方案 > How yarn application id is generated

问题描述

I kick off a yarn application, it gives the id as application_1560618551799_4465795

But, I am supprised to find that 1560618551799 means Sun Jun 16 01:09:11 CST 2019,which is about 3 months ago.

I have thought that the timestamp in the id will fall into today, I would ask whether I am able to figure out when the application kicks off from id?

Thanks

标签: hadoophadoop-yarn

解决方案


不幸的是,不能从应用程序 ID 本身推断应用程序启动时间。的源代码ApplicationId提供以下叙述:

ApplicationId表示应用程序的全局唯一标识符。

标识符的全局唯一性是通过使用 集群时间戳(即开始时间) ResourceManager以及应用程序的单调递增计数器来实现的

您可能需要getApplicationReport使用YarnClient, 并从那里提取开始时间。


推荐阅读