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: 
tchanabc
Contributor III
Contributor III

Manual export of Talend job

Hi,

I was wondering if there is a way to get the command that generates a jar when building a Talend job. When i click 'Finish', somewhere in the backend, some command is bound to be executed. I am trying to do the following:

 

 

  1. Export the job to desired location using the command line without need for TMC, TAC or any of the Talend licensed products. I am only using the Community edition
  2. Execute the 'june_items_run.sh' script
  3. Automate steps 1 & 2 (I will do this on my own)0695b00000Uz2lpAAB.png
Labels (2)
1 Solution

Accepted Solutions
tchanabc
Contributor III
Contributor III
Author

This issue is resolved. I was able to get it running by using "mvn -X -Dmaven.repo.local=/Applications/TOSDI-8.0.1/studio/configuration/.m2/repository clean install"

View solution in original post

6 Replies
Anonymous
Not applicable

hello you are trying to build the job and not to export it. That's 2 differents things.

 

you can see how it works by watching the studio logs that are stored with workspace/.metadata/.log

 

 

 

tchanabc
Contributor III
Contributor III
Author

Thanks @David Lucas​. However, the logs do not contain the command that is run to build the jar. I was able to try a few things and came across another issue where there were missing jars in the maven repository. I ran "maven -X compile". It will fail on the missing dependencies in the repo. Please see below errors. I have attached my pom.xml and the log. I did find this repo: https://mvnrepository.com/artifact/org.talend (https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceRelease/) but It didnt find the jars.

 

Could not find artifact org.talend.daikon:crypto-utils:jar:0.31.12 in central (https://repo.maven.apache.org/maven2)

 

org.talend.libraries:external_sort:jar:6.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

 

org.talend.libraries:external_sort:jar:6.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

 

org.talend.libraries:json-path-2.1.0:jar:6.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

 

org.talend.components:talendcsv:jar:1.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

 

org.example.tims_dwh.code:routines:jar:8.0.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

 

 

tchanabc
Contributor III
Contributor III
Author

 
Anonymous
Not applicable

Hello,

By default, when a Job is built, all the required jars are included in the .bat or .sh command. For a complex Job that involves many Jars, the number of characters in the batch command may exceed the limitation of command length on certain operating systems. To avoid failure of running the batch command due to this limitation, before building your Job, go to Window > Preferences, select Talend > Import/Export, and then select the Add classpath jar in exported jobs check box to wrap the Jars in a classpath.jar file added to the built Job.

Best regards

Sabrina

tchanabc
Contributor III
Contributor III
Author

This issue is resolved. I was able to get it running by using "mvn -X -Dmaven.repo.local=/Applications/TOSDI-8.0.1/studio/configuration/.m2/repository clean install"

Anonymous
Not applicable

Hello,

Glad you got it sorted and thanks for coming back to give your solution!

Best regards

Sabrina