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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trouble running different version talend jobs

Hi,

 

I have a Linux VM that has lots of talend jobs that I created using TOS 6.4.1 and java v.1.8.0_181. Never had any major issues until I recently upgraded TOS to its newer version 7.2.1.

 

cd `dirname $0`
ROOT_PATH=`pwd`
export PATH=$PATH:/usr/java/jre1.8.0_181/
export JOBS_PATH=/home/splunk/jobs/
export SPLUNK_LOG=/splunk/
java -Dtalend.component.manager.m2.repository=$ROOT_PATH/../lib -Xms256M -Xmx1024M -cp .:$ROOT_PATH:$ROOT_PATH/../lib/routines.jar:$ROOT_PATH/../lib/crypto-utils.jar:$ROOT_PATH/../lib/dom4j-1.6.1.jar:$ROOT_PATH/../lib/edtftpj-2.5.0.jar:$ROOT_PATH/../lib/ini4j-0.5.1.jar:$ROOT_PATH/../lib/jakarta-oro-2.0.8.jar:$ROOT_PATH/../lib/log4j-1.2.17.jar:$ROOT_PATH/../lib/talendcsv.jar:$ROOT_PATH/socorp_existingreportsatg_0_1.jar: sodimac.socorp_existingreportsatg_0_1.SOCORP_ExistingReportsATG  "$@"

That's the script that I'm trying to run on this VM. And when I execute it, it drops this message:

Spoiler

: No such file or directoryun.sh: line 2: cd: .

Error: Could not find or load main class sodimac.socorp_existingreportsatg_0_1.SOCORP_ExistingReportsATG

 

(Keep in mind that the job name is "SOCORP_ExistingReportsATG_run.sh", that's why it says "directoryun.sh" I think)

 

When I execute it on my laptop it works perfectly. This is the laptop with TOS DI v7.2.1, but the java version is 1.8.0_211-b12, idk if that's important but I think that this has something to do with it.

 

Thanks in advance!

Labels (3)
6 Replies
Anonymous
Not applicable
Author

Hello,

I would recommend using oracle JDK instead of JRE. JDK is not needed to run job especially in the studio, but needed to export the job.

Best regards

Sabrina

Anonymous
Not applicable
Author

Didn't understand. Should I use JDK or JDE?

 

And is there a chance that there is a java version mismatch on both machines and that's why it isn't working on the VM?

 

Again, thanks in advance

Anonymous
Not applicable
Author

Is it possible to that there is a java version mismatch on both machines? Because the talend 7.2 doesn't work on the VM that has talend 6.4 jobs running on it.
Anonymous
Not applicable
Author

I still can't use my new laptop jobs on the VM...

 

Any advice?

MMRABAT1601471696
Contributor
Contributor

Hi,

 

Did you find the issue?

 

Br,

Anonymous
Not applicable
Author

Hello,

Could you please give us more information about your current situation? What's Linux VM and JDK version are you using?

Best regards

Sabrina