Four Stars

Could not find the context error, while running talend job from linux

Hi,
I have created a sample job and exported the zip file and ran on linux box with .sh file , it ran properly without error. As per our project standards we have created separate project structure and separated jars in lib folder and jobname.jars and .sh files in bin folder. and kept all jars in classpath. we are able to run the job but we are facing issue with context.
# sh jar_Test_run.sh --context=dev
Could not find the context dev

Please look into the screenshots of execution and help me.

Thanks in advance.
10 REPLIES
Four Stars

Re: Could not find the context error, while running talend job from linux

Hi,
If you have restructured everything as per your standard, then job should run provided respective context group files are available in context folder path.
$ ./jar_Test_run.sh --context=/tmp/dev
Thanks
Vaibhav
One Star

Re: Could not find the context error, while running talend job from linux

hi, with your suggestion i have included the the same, but still getting same error.
# sh jar_Test_run.sh --context=/home/rs31903/Sample_Test/
jar_Test/erm/jar_test_0_1/contexts/dev.properties
Could not find the context /home/rs31903/Sample_Test/jar_Test/erm/jar_test_0_1/contexts/dev.properties
Four Stars

Re: Could not find the context error, while running talend job from linux

Hi,
Your job should work if you provide context group Name if you have created in the repository. Respective context group files would be available inside the context folder.
Few more details are also available at http://www.talendbyexample.com/talend-job-deployment-shell-launchers-reference.html
Check the screenshot... It works by just providing the context group name created during job development. We need not give property file name.
Thanks
Vaibhav
Four Stars

Re: Could not find the context error, while running talend job from linux

hi,
If i include the talend generated zip file in some location and run shell script it is working but if i modify the folder structure then also job is executing but it is not identifying context.
Please see the screenshot to identify my issue.
Four Stars

Re: Could not find the context error, while running talend job from linux

Have you created context groups in your job and tested?
As per your job, context groups are not created... Job execution may or may not be related to context group, it depends upon how your job is implemented.
Vaibahv
Four Stars

Re: Could not find the context error, while running talend job from linux

Four Stars

Re: Could not find the context error, while running talend job from linux

Please look into screenshots for my samplejob
Four Stars

Re: Could not find the context error, while running talend job from linux

Please the screen shots
Four Stars

Re: Could not find the context error, while running talend job from linux

Images are filtering before, see total job now.
Four Stars

Re: Could not find the context error, while running talend job from linux

Hi Rafisk,
Following post from carl may give you some insight for what you are looking for.
http://bekwam.blogspot.in/2011/10/applying-contexts-to-talend-open-studio.html
Thanks
Vaibhav