/** * Get the log of a job. * * @param jobId job Id. * @param logRetrievalType Based on which filter criteria the log is retrieved * @param logRetrievalScope Value for the retrieval type * @param ps Printstream of command line interface * @throws OozieClientException thrown if the job info could not be retrieved. */ public void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, PrintStream ps) throws OozieClientException { getJobLog(jobId, logRetrievalType, logRetrievalScope, null, ps); }
/** * Get the log of a job. * * @param jobId job Id. * @param logRetrievalType Based on which filter criteria the log is retrieved * @param logRetrievalScope Value for the retrieval type * @param ps Printstream of command line interface * @throws OozieClientException thrown if the job info could not be retrieved. */ public void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, PrintStream ps) throws OozieClientException { getJobLog(jobId, logRetrievalType, logRetrievalScope, null, ps); }
@Override public String getJobLog() throws OozieClientException { try { return oozieClient.getJobLog( id ); } catch ( org.apache.oozie.client.OozieClientException e ) { throw new OozieClientException( e, e.getErrorCode() ); } }
@Override public String getJobLog() throws OozieClientException { try { return oozieClient.getJobLog( id ); } catch ( org.apache.oozie.client.OozieClientException e ) { throw new OozieClientException( e, e.getErrorCode() ); } }
public Void call() throws Exception { String oozieUrl = getContextURL(); OozieClient wc = new OozieClient(oozieUrl); String jobId = MockDagEngineService.JOB_ID + "1" + MockDagEngineService.JOB_ID_END; assertEquals(RestConstants.JOB_SHOW_LOG, wc.getJobLog(jobId)); WorkflowAction wfAction = wc.getWorkflowActionInfo(jobId); assertEquals(jobId, wfAction.getId()); CoordinatorJob job = wc.getCoordJobInfo(MockCoordinatorEngineService.JOB_ID + "1" + MockCoordinatorEngineService.JOB_ID_END); assertEquals("group", job.getAcl()); assertEquals("RUNNING", job.getStatus().toString()); assertEquals("user", job.getUser()); assertEquals(MockCoordinatorEngineService.offset, new Integer(1)); assertEquals(MockCoordinatorEngineService.length, new Integer(1000)); BundleJob bundleJob = wc.getBundleJobInfo(jobId); assertEquals("SUCCEEDED", bundleJob.getStatus().toString()); assertEquals("user", bundleJob.getUser()); return null; } });