• Index
  •  » Talend Enterprise Data Integration » General questions
  •  » intitiating talend job through shell script

#1 2012-02-08 16:55:06

talendnovice
Guest

intitiating talend job through shell script

Hi

I've been trying to trigger the talend job through shell script , which calls all jar files associated with the project .But i get the following error when i try to execute the shell script :

./script.sh &
[1] 29598
sh-3.2$ Exception in component tJavaRow_3
java.lang.NullPointerException
        at dqm.processfeed_26_1.processFeed.tMysqlInput_3Process(processFeed.java:1842)
        at dqm.processfeed_26_1.processFeed.tWarn_1Process(processFeed.java:1583)
        at dqm.processfeed_26_1.processFeed_26_1.runJobInTOS(processFeed.java:4926)
        at dqm.processfeed_26_1.processFeed.main(processFeed.java:4734)

[1]+  Done(1)                 ./script.sh

The same when i'm trying to run through a scheduled application as a cron job , it is running fine . Are there any permission issues or something else which i need to set for it to run.I've tried running it on multiple servers and i'm getting the same error.I want to run it manually through the script as i need to test it on different servers and cannot install the application on each.

Kindly help.

Thanks
novice

#2 2012-02-09 10:08:38

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: intitiating talend job through shell script

Hi

You mean you type a shell script by yourself to run the job?

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-02-09 10:15:45

talendnovice
Guest

Re: intitiating talend job through shell script

The shell script invokes the .jar files of talendjob.The job has mulitple subjobs, each of which has a .jar file associated with it , and the error mentioned is thrown by the first subjob.

#4 2012-02-09 10:18:01

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: intitiating talend job through shell script

Hi

When you export one job from TOS, you will find JobName_run.sh in the export zip file.
There is no need to create it by yourself.

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-02-09 10:28:35

talendnovice
Guest

Re: intitiating talend job through shell script

We are trying to invoke the same script generated along with the export, but it has been throwing exceptions (mentioned in the post). The same script when scheduled as a cron job works fine. Have checked for all the permissions and they're fine..Any pointers ?

#6 2012-02-09 10:44:24

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: intitiating talend job through shell script

Hi

The JobName_run.sh file is in the same directory with the lib directory.
Maybe you'd better type absolute path in your sh file.

Regards,
Pedro


Only Paranoid Survive.

Offline

#7 2012-02-09 11:45:02

talendnovice
Guest

Re: intitiating talend job through shell script

On the shell, We point to the directory within which the shell script is present and invoke it by ./script.sh

what else do we need to type in other than that? the exact problem here is that our scheduler for other jobs also invokes the same script like we are manually doing, but it does in a scheduled way through the application. the same thing when we are trying to invoke manually from command line has been failing. that is the discrepancy which we are not able to understand exactly. do you have any clue why this could be happening?

Thanks.

  • Index
  •  » Talend Enterprise Data Integration » General questions
  •  » intitiating talend job through shell script

Board footer

Powered by FluxBB