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: 
Anonymous
Not applicable

S3 bucket naming from talend

Hi Everyone,

 

I am using ts3list to get all the files from the s3 bucket.

There are 2 fields : Bucket & Key

i have 2 buckets abc and xyz. The xyz bucket is inside abc.

In Bucket portion-I need to give 2 buckets.

If i give In bucket name Like "abc",It works

but now i need to give "abc/xyz" as bucket name but it is not working.

anyone know any solution for this?

 

Regards,

Mohit

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

when you run tS3FileList - YOU DO NOT KNOW filenames 🙂

 

fot tS3FileList you need only prefix - "abcd_17678xxxxx/"

(foldername)

 

after - component will return 1 filename for 1 iteration

View solution in original post

8 Replies
vapukov
Master II
Master II

are you sure it is bucket inside the bucket? as I remember - bucket contain folders or files

 

maybe it is just folder?

as I remember folder could be part of Key prefix

Anonymous
Not applicable
Author

Hi Vapukov,

 

Thanks,I have tried as a Folder name as you said:

Bucket Name="xyz1234"

Folder Name= abcd_17678xxxxx/

 

In ts3List i have used

bucket as: "xyz1234"

Key Prefix as:

"abcd_17678xxxxx/"+((String)globalMap.get("tS3List_1_CURRENT_KEY"))

 

In S3Get i used 

Bucket as: "xyz1234"

Key as 0683p000009MPcz.png(String)globalMap.get("bucket"))+"/"+"abcd_17678xxxxx/"+"/"((String)globalMap.get("key"))

where folder name= abcd_17678xxxxx/

 

Let me know if this approach is correct because i am getting error while giving folder name into Key prefix.

 

Regards,

Mohit

vapukov
Master II
Master II

why you use

Key Prefix as:

"abcd_17678xxxxx/"+((String)globalMap.get("tS3List_1_CURRENT_KEY"))?

 

as I understand - it is tS3List_1 and You try use current filename inside the same component

 

it always better attach all picture with proper configuration rather then try to guess 🙂

Anonymous
Not applicable
Author

Hi Vapukov,

 

I used "abcd_17678xxxxx/"+((String)globalMap.get("tS3List_1_CURRENT_KEY"))? in key prefix because it will get folder name first then key items inside that folder.

 

I attached a screenshot.

Let me know if any solution.

 

 

Regards,

Mohit


error_1.docx
vapukov
Master II
Master II

when you run tS3FileList - YOU DO NOT KNOW filenames 🙂

 

fot tS3FileList you need only prefix - "abcd_17678xxxxx/"

(foldername)

 

after - component will return 1 filename for 1 iteration

Anonymous
Not applicable
Author

I am not sure what is happening.It is giving me Null,Null,Null............... inside the folder.

Only folder name i am getting.

I used only folder name in key prefix. 0683p000009MPcz.png

 

Regards,

Mohit

 

vapukov
Master II
Master II

🙂

 

you are mask half of information, so I can not check - what is wrong what is proper

but it work in my jobs - I delete files in subfolders on bucket (as I remember - job installed on TAC and not opened last year)

Anonymous
Not applicable
Author

It Worked.

Thank You so Much 0683p000009MACn.png

 

Regards,

Mohit