Beispiel #1
0
 private void copyOozieLog(OozieClient client, FileSystem fs, Path path, String id)
     throws OozieClientException, IOException {
   InputStream in = new ByteArrayInputStream(client.getJobLog(id).getBytes());
   OutputStream out = fs.create(new Path(path, "oozie.log"));
   IOUtils.copyBytes(in, out, 4096, true);
   LOG.info("Copied oozie log to {}", path);
 }