Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ANK1656078988
Contributor
Contributor

Write files iteratively to Azure Blob Storage

Hi,

I am looking to randomly generate some data using the tRowGenerator component, write this into a file and upload this data to Azure Blob Storage container, at a 10 second interval

What is the best way to do this?

I am currently stuck at the point where I cant connect the "main" line of tfileoutoutdelimited and write into Azure.

The tAzureStoragePut component requires the all the files be stored in a directory before it can be uploaded to Azure. However I want the upload to happen iteratively, one file at a time.

Any suggestions?

0695b00000SqSU0AAN.png

Labels (6)
1 Solution

Accepted Solutions
InfoCraft
Creator
Creator

Hi @Aravind NK​,

  1. OnComponentOK: will trigger the tAzureStoragePut after each itération.
  2. OnSubjobOK triggers tAzureStoragePut at the end of all iterations

 

+++ gift_reminder,

OnSubjobOK and OnComponentOK are trigger links, which can link to another subjob. The main difference between them lies in the execution order of the linked subjob.

  • With OnSubjobOK, the linked subjob starts only when the previous subjob completely finishes.
  • With OnComponentOK, the linked subjob starts when the previous component finishes.

Kind regards,

😷19.

View solution in original post

3 Replies
InfoCraft
Creator
Creator

Hi @Aravind NK​,

*** tAzureStoragePut can send one or more file in the same time.

So, you have 2 solutions:

  1. Send Files on by one(for each iteration)0695b00000SqX6wAAF.png
  2. 0695b00000SqX7BAAV.png

Example: I'm able to send all files starting with test0 to the Azure Storage...

0695b00000SqX6cAAF.png0695b00000SqX6hAAF.png===> I don't understand why you iterate every 10 seconds!

 

Kind regards,

😷19.

ANK1656078988
Contributor
Contributor
Author

Hi @not specified not specified​ Thank you for the response.

The reason behind iterating every 10 seconds is to simulate a streaming use case, where each file would represent a stream of data.

 

I am clear on the first option.

For the second one, will the tLoop component OnSubJobOk connector trigger tAzurePutStorage during every iteration?

 

InfoCraft
Creator
Creator

Hi @Aravind NK​,

  1. OnComponentOK: will trigger the tAzureStoragePut after each itération.
  2. OnSubjobOK triggers tAzureStoragePut at the end of all iterations

 

+++ gift_reminder,

OnSubjobOK and OnComponentOK are trigger links, which can link to another subjob. The main difference between them lies in the execution order of the linked subjob.

  • With OnSubjobOK, the linked subjob starts only when the previous subjob completely finishes.
  • With OnComponentOK, the linked subjob starts when the previous component finishes.

Kind regards,

😷19.