Class ProcessIdFileReader

java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.util.ProcessIdFileReader

public class ProcessIdFileReader extends Object
Helper functionality to read the pid from a file.
  • Constructor Details

    • ProcessIdFileReader

      public ProcessIdFileReader()
  • Method Details

    • getProcessId

      public static String getProcessId(org.apache.hadoop.fs.Path path) throws IOException
      Get the process id from specified file path. Parses each line to find a valid number and returns the first one found.
      Returns:
      Process Id if obtained from path specified else null
      Throws:
      IOException