public static List < String > getPid ( Map conf , String workerId ) throws IOException { String workerPidPath = StormConfig . worker_pids_root ( conf , workerId ) ; return PathUtils . read_dir_contents ( workerPidPath ) ; }
When worker has been started by manually and supervisor it will return multiple pid