Hi,
I have a requirement where I need to update the Application-Name of a Yarn Application Master (AM) that I use to execute a task. The same Yarn AM is reused to run multiple tasks and and I need to update the Application-Name of the Yarn AM based on the task I run currently.
Example.:
If I am running a sort task, then ' yarn application -list' command should show:
sh-4.4$ yarn application -list
23/06/23 00:34:24 INFO client.RMProxy: Connecting to ResourceManager at abc.def.hig.com/xx.xx.xx.xx:8032
Total number of applications (application-types: [], states: [SUBMITTED, ACCEPTED, RUNNING] and tags: []):2
Application-Id Application-Name Application-Type User Queue State Final-State Progress Tracking-URL
application_1686581388019_0752 sort_job1 YARN dsadm default RUNNING UNDEFINED 0% N/A
And later, If I am running a delete task using the same AM then ' yarn application -list' command should show:
sh-4.4$ yarn application -list
23/06/23 00:34:24 INFO client.RMProxy: Connecting to ResourceManager at abc.def.hig.com/xx.xx.xx.xx:8032
Total number of applications (application-types: [], states: [SUBMITTED, ACCEPTED, RUNNING] and tags: []):2
Application-Id Application-Name Application-Type User Queue State Final-State Progress Tracking-URL
application_1686581388019_0752 delete_job1 YARN dsadm default RUNNING UNDEFINED 0% N/A
Is there a way to do this?
Thank you in advance!
Juan