}
}
}
private void sendPayloadToWebHDFS(String filepath, byte[] payload) throws IOException {
WebHDFSClient webHDFSClient = new WebHDFSClient(outboundConfiguration);
createDestinationDirectory(webHDFSClient, filepath.substring(0,filepath.lastIndexOf("/")));
webHDFSClient.createFile(filepath, payload);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Message sent to WebHDFS destination at path: " + filepath);
}
}