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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
AKizilarslan1702922386
Contributor II
Contributor II

How to import external SDKs like from aws correctly via maven to use in tjava component? (Use Case: Calculate aws siganture version 4)

Hi folks,

I need help for following questions:

  • How to import external SDKs like from aws correctly via maven to use in tjava component?
  • Do I need to set further dependencies so my job or the JVM find the maven dependency? I am thinking of class- or build-paths by asking this.
  • I assume that via maven my job will also work in Talend Cloud. Please correct me if my assumption is not correct.

Use Case: Calculate aws siganture version 4 (with the AWS4Signer-java-class) and create authentication header. Use this auth header afterwards by executing POST-API-request.

Specs: I am using Talend Studio Version 8.0.1 (Data Integration Perspective)

Nice to know: I also tried to compute aws signature by default talend-java-classes (so, without installing external jars) but calculation of sigature seems to be incomplete according API-Response.

I'm happy about every tip and solution suggestion. Thanks!

Labels (2)
2 Replies
Anonymous
Not applicable

Hi

You have two ways to load additional JAR files,

  • Using tlibraryLoad to load external jar in the job, you can then use the relevant java classes on tJava, tJavaRow or tJavaFlex components.
  • Create a user routine and load external jars.

 

Regards

Shong

-

AKizilarslan1702922386
Contributor II
Contributor II
Author

Hi shong, thanks for reply!

 

Locally on talend Studio I could use external JAR files by using tLibaryLoad.

After publishing into talend cloud I faced other errors (" Exception in thread "main" java.lang.Error: Unresolved compilation problems:"). I did some research and ended up with installing nexus first.