shrikant belan created NIFI-11384:
-------------------------------------
Summary: PutAzureBlob not appending new data to file
Key: NIFI-11384
URL: https://issues.apache.org/jira/browse/NIFI-11384
Project: Apache NiFi
Issue Type: Bug
Affects Versions: nifi-nar-maven-plugin-1.4.0
Reporter: shrikant belan
Hi,
We are using PutAzureBlobStorage (1.16.0.2.1.4.1000-5) to push data to azure.
We found by default it create block blob and keep overwriting files instead if
append. We tried with append blob and getting below exception while writing to
blob from nifi.
java.io.IOException: The blob type is invalid for this operation. Please see
the cause for further information.
at
com.microsoft.azure.storage.core.Utility.initIOException(Utility.java:768)
at
com.microsoft.azure.storage.blob.BlobOutputStreamInternal.writeBlock(BlobOutputStreamInternal.java:475)
at
com.microsoft.azure.storage.blob.BlobOutputStreamInternal.access$000(BlobOutputStreamInternal.java:47)
at
com.microsoft.azure.storage.blob.BlobOutputStreamInternal$1.call(BlobOutputStreamInternal.java:419)
at
com.microsoft.azure.storage.blob.BlobOutputStreamInternal$1.call(BlobOutputStreamInternal.java:416)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.microsoft.azure.storage.StorageException: The blob type is
invalid for this operation.
at
com.microsoft.azure.storage.StorageException.translateException(StorageException.java:87)
at
com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:305)
at
com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:196)
at
com.microsoft.azure.storage.blob.CloudBlockBlob.uploadBlockInternal(CloudBlockBlob.java:1254)
at
com.microsoft.azure.storage.blob.CloudBlockBlob.uploadBlock(CloudBlockBlob.java:1226)
at
com.microsoft.azure.storage.blob.BlobOutputStreamInternal.writeBlock(BlobOutputStreamInternal.java:469)
... 9 common frames omitted
--
This message was sent by Atlassian Jira
(v8.20.10#820010)