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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Connect to S3 - com.amazonaws cannot be resolved to a type

Hi there,

 

I have a problem installing Talend Open Studio DI 7.0.1 on a windows server in the AWS cloud, where I have no access to the internet or just to say almost no access. I have downloaded the needed jar files for S3 and I just wanted to test it with the tS3Connect component. In the Modules View everything seems to be okay and the component itself doesn't give any errors.

 

Just when I try to run it, I get back an error  saying "com.amazonaws cannot be resolved to a type". I have installed JDK 1.8.0_171. I have added to be sure "C:\Program Files\Java\jdk1.8.0_171\bin;" to the Path variable. For the S3Connection component everything seems to be installed, including "com.amazonaws/aws-java-sdk/1.11.269/jar".

 

I have installed the same version on my Mac with full internet access and there I have no problem of course.

 

Does anyone know how to handle so that Talend Open Studio can see the com.amazonaws parts, when you have very limited access to the internet?

 

Regards,

Patrick

Labels (2)
21 Replies
akumar2301
Specialist II
Specialist II

Did you solve this issue?
tvoelz
Contributor
Contributor

Hi,

 

I have the same issue in nearly the same environment. Did you solve the issue?

 

Kind regards,

Torsten

akumar2301
Specialist II
Specialist II

You need to use tLibraryLoad and then connect.
tvoelz
Contributor
Contributor

Hi,

 

I implenented the tLibraryLoad in my Job.

0683p000009M7zk.png

In the first tLibraryLoad I load "aws-java-sdk-1.11.269.jar" in the second one "jackson-annotations-2.9.4.jar". Is there any other Library I have to load?

When I start the Job I get the following error message:

0683p000009M7pr.png

I'm working with Talend 7.0.1, "jdk1.8.0_191" and "jre1.8.0_191".

 

Kind regards

Torsten

Anonymous
Not applicable
Author

Hello,

Could you please check your "Code" tab in your job to see if there will be your compile error highlighted in red line? If so, we will appreciate it a lot if you could post it here.

Best regards

Sabrina

tvoelz
Contributor
Contributor

Hi Sabrina,

 

this is the code with the errors:

0683p000009M7mw.png

I hope that helps?

 

Best regards,

Torsten

Anonymous
Not applicable
Author

Hello,

After you click the "Code " to see the generated code, does the jar "aws-java-sdk-1.11.269.jar" include the lib?

 "com.amazonaws cannot be resolved to a type".

This error means that the jar was loaded by fail.

For the new "aws-java-sdk", it is not correct that the component includes several different version jars.

About the solution: You should not include multiple version of the same API in your component definition, this can lead to unexpected behavior.

Thanks
Regards

Anonymous
Not applicable
Author

Hello,

In addition to that, have you already checked this online documentation about:TalendHelpCenter:Installing external modules? Does it work for you when you install this external module "aws-java-sdk-x.xx.xxx.jar" file via module view?

Best regards

Sabrina

tvoelz
Contributor
Contributor

Hi,

 

I fixed it with using tLibraryLoad.

 

0683p000009M827.png

 

Thanks for your help.

 

Best regards,

Torsten

nchimakurty
Contributor II
Contributor II

Hi,

I still getting error related to JVM Compatability. Please find snippets for job error, compiler error from code and AWS jar file installed from modules attached.

Please help me to resolve issue.

Talend Version: Talend Cloud Real Time Big Data Platform 7.2

Java Version on machine: 1.8.0_65

 

0683p000009M999.pngModulesattached.0683p000009M8ix.pngCompiler error snippet from Code

 

0683p000009M99J.pngJob Error

 

Thanks