Handle AWS Library Dependencies on job

Five Stars

Handle AWS Library Dependencies on job

Hello i have problem with using AWS SDK in my tJavaFlex code get this exception:

 

Exception in thread "main" java.lang.NoSuchMethodError: com.amazonaws.SDKGlobalConfiguration.isInRegionOptimizedModeEnabled()Z
at com.amazonaws.ClientConfigurationFactory.getConfig(ClientConfigurationFactory.java:35)
at com.amazonaws.client.builder.AwsClientBuilder.resolveClientConfiguration(AwsClientBuilder.java:167)
at com.amazonaws.client.builder.AwsClientBuilder.access$000(AwsClientBuilder.java:54)
at com.amazonaws.client.builder.AwsClientBuilder$SyncBuilderParams.<init>(AwsClientBuilder.java:478)
at com.amazonaws.client.builder.AwsClientBuilder.getSyncClientParams(AwsClientBuilder.java:419)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)

 

After doing some googling, I found that this problem is because the AWS SDK dependencies, maybe because we are using sofware that is using old-Talend version (so don't tell to upgrade Talend version) so it still using old AWS SDK version. However, i have try to edit routine libraries in routines and setup routine libraries in code and see the libraries already installed in routines and jobs but in runtime the tJavaFlex still refers to old AWS SDK.

 

How to manage tJavaFlex component to use specific libraries/dependencies correctly?


Accepted Solutions
Highlighted
Five Stars

Re: Handle AWS Library Dependencies on job

Already found solution need to change all the component dependencies in the folder plugins -> xxxlocalprovider -> components -> [Your Components] -> [component_name]_java.xml

 

Then import all the needed dependencies from external modules


All Replies
Highlighted
Five Stars

Re: Handle AWS Library Dependencies on job

Already found solution need to change all the component dependencies in the folder plugins -> xxxlocalprovider -> components -> [Your Components] -> [component_name]_java.xml

 

Then import all the needed dependencies from external modules

Five Stars

Re: Handle AWS Library Dependencies on job

Hi ,

 

Thanks for your post. It is helpful!

 

Could you please help me in knowing how you are handling AWS encryption through talend.

If you give me any sample talend job then that would be very useful.

Also would like to know about how you are using jars/libraries of AWS SDK in talend?

 

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.