
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 (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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Regards,
Mohit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
🙂
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)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It Worked.
Thank You so Much
Regards,
Mohit
