Python program to check for processes running by hadoop user and which is running for more than 3 hours.

User Generated

grpuevpuvg

Programming

Description

I am looking to find a python method which checks for the process that are running in the background for more than 3 hours and the user is hadoop. 

I have jobs running on the emr through out the day the expected time for a job is less than 2 hours but my requirement is to find if any job is running for more than 3 hours which is running on the hadoop user.

I tried yarn application -list but no luck any help is greatly appreciated. 

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Chec...

Related Tags