// Create Container
BlobStore blobStore = context.getBlobStore(); // it can be changed to sync
// BlobStore
blobStore.createContainerInLocation(null, containerName);
Blob blob = blobStore.blobBuilder(objectName).payload(
new HdfsPayload(new Path(hdfsUrl), conf))
.contentType(MediaType.APPLICATION_OCTET_STREAM)
.contentDisposition(objectName).build();
long length = blob.getPayload().getContentMetadata().getContentLength();
blobStore.putBlob(containerName, blob, multipart());