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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.
Labels (2)
10 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
0683p000009MDfr.jpg
Anonymous
Not applicable
Author

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.
0683p000009MDdX.gif 0683p000009MDfw.gif
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

Please look into screenshots for my samplejob
Anonymous
Not applicable
Author

Please the screen shots
Anonymous
Not applicable
Author

Images are filtering before, see total job now.
0683p000009MDg1.gif