Skip to main content
Prav
Gold ⭐️
Jul 30, 2019 8:59 PM UTC
Solved

How deep does command "yarn application -list -appStates ALL" goes

Hi everyone,

 

I'm using command in subject to fetch all yarn applications and use grep on the output to filter out a specific application . I wanted to find out what is the limit of this command, as in how far in the history does it go to get these states. Is this limited by the job history server limit or does it return something below that like last 1000 jobs etc?

 

Regards

_Umesh
_UmeshAnswer
Gold ⭐️
Jul 31, 2019 6:53 AM UTC

Since the "list" commands gets the apps from the ResourceManager and doesn't set any explicit filters and limits (except those provided with it) on the request, technically it returns all the applications which are present with RM at the moment. That number is controlled by "yarn.resourcemanager.max-completed-applications" config. Hope that clarifies.

1 reply

_Umesh
Gold ⭐️
_UmeshAnswer
Gold ⭐️
Jul 31, 2019 6:53 AM UTC

Since the "list" commands gets the apps from the ResourceManager and doesn't set any explicit filters and limits (except those provided with it) on the request, technically it returns all the applications which are present with RM at the moment. That number is controlled by "yarn.resourcemanager.max-completed-applications" config. Hope that clarifies.

Translate